diff --git a/docs/easy.md b/docs/easy.md deleted file mode 100644 index c52437b..0000000 --- a/docs/easy.md +++ /dev/null @@ -1,4784 +0,0 @@ ---- -hide: - - toc ---- - -# Difficulty - Easy (as of 2023-09-25) - -## [3D Printed Statues](https://open.kattis.com/problems/3dprinter) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/3dprinter.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/3dprinter.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/3dprinter.py" - ``` - -## [99 Problems](https://open.kattis.com/problems/99problems) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/99problems.py" - ``` - -## [Aaah!](https://open.kattis.com/problems/aaah) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/aaah.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/aaah.py" - ``` - -## [ABC](https://open.kattis.com/problems/abc) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/abc.py" - ``` - -## [Above Average](https://open.kattis.com/problems/aboveaverage) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/aboveaverage.py" - ``` - -## [ACM Contest Scoring](https://open.kattis.com/problems/acm) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/acm.py" - ``` - -## [Adding Trouble](https://open.kattis.com/problems/addingtrouble) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/addingtrouble.py" - ``` - -## [Add Two Numbers](https://open.kattis.com/problems/addtwonumbers) - -??? success "Solutions in 4 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/addtwonumbers.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/addtwonumbers.java" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/addtwonumbers.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/addtwonumbers.py" - ``` - -## [Akcija](https://open.kattis.com/problems/akcija) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/akcija.py" - ``` - -## [Alphabet Spam](https://open.kattis.com/problems/alphabetspam) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/alphabetspam.py" - ``` - -## [Amerískur vinnustaður](https://open.kattis.com/problems/ameriskur) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ameriskur.py" - ``` - -## [Amsterdam Distance](https://open.kattis.com/problems/amsterdamdistance) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/amsterdamdistance.py" - ``` - -## [A New Alphabet](https://open.kattis.com/problems/anewalphabet) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/anewalphabet.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/anewalphabet.py" - ``` - -## [Another Brick in the Wall](https://open.kattis.com/problems/anotherbrick) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/anotherbrick.py" - ``` - -## [Apaxiaaaaaaaaaaaans!](https://open.kattis.com/problems/apaxiaaans) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/apaxiaaans.py" - ``` - -## [Honour Thy (Apaxian) Parent](https://open.kattis.com/problems/apaxianparent) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/apaxianparent.py" - ``` - -## [A Real Challenge](https://open.kattis.com/problems/areal) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/areal.go" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/areal.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/areal.py" - ``` - -## [Are You Listening?](https://open.kattis.com/problems/areyoulistening) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/areyoulistening.py" - ``` - -## [Arithmetic Functions](https://open.kattis.com/problems/arithmeticfunctions) - -??? success "Solution in C++" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/arithmeticfunctions.cpp" - ``` - -## [Army Strength (Easy)](https://open.kattis.com/problems/armystrengtheasy) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/armystrengtheasy.py" - ``` - -## [Army Strength (Hard)](https://open.kattis.com/problems/armystrengthhard) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/armystrengthhard.py" - ``` - -## [Astrological Sign](https://open.kattis.com/problems/astrologicalsign) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/astrologicalsign.py" - ``` - -## [Autori](https://open.kattis.com/problems/autori) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/autori.py" - ``` - -## [Average Character](https://open.kattis.com/problems/averagecharacter) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/averagecharacter.py" - ``` - -## [Avion](https://open.kattis.com/problems/avion) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/avion.py" - ``` - -## [Babelfish](https://open.kattis.com/problems/babelfish) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/babelfish.py" - ``` - -## [Baby Bites](https://open.kattis.com/problems/babybites) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/babybites.py" - ``` - -## [Baby Panda](https://open.kattis.com/problems/babypanda) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/babypanda.py" - ``` - -## [Backspace](https://open.kattis.com/problems/backspace) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/backspace.py" - ``` - -## [Bacon, Eggs, and Spam](https://open.kattis.com/problems/baconeggsandspam) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/baconeggsandspam.py" - ``` - -## [Bannorð](https://open.kattis.com/problems/bannord) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bannord.py" - ``` - -## [Basketball One-on-One](https://open.kattis.com/problems/basketballoneonone) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/basketballoneonone.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/basketballoneonone.py" - ``` - -## [Batter Up](https://open.kattis.com/problems/batterup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/batterup.py" - ``` - -## [Beat the Spread!](https://open.kattis.com/problems/beatspread) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/beatspread.py" - ``` - -## [Beavergnaw](https://open.kattis.com/problems/beavergnaw) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/beavergnaw.py" - ``` - -## [Beekeeper](https://open.kattis.com/problems/beekeeper) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/beekeeper.py" - ``` - -## [Bela](https://open.kattis.com/problems/bela) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bela.py" - ``` - -## [Betting](https://open.kattis.com/problems/betting) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/betting.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/betting.py" - ``` - -## [Bijele](https://open.kattis.com/problems/bijele) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bijele.py" - ``` - -## [Black Friday](https://open.kattis.com/problems/blackfriday) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/blackfriday.py" - ``` - -## [Blueberry Waffle](https://open.kattis.com/problems/blueberrywaffle) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/blueberrywaffle.py" - ``` - -## [Bluetooth](https://open.kattis.com/problems/bluetooth) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bluetooth.py" - ``` - -## [Boat Parts](https://open.kattis.com/problems/boatparts) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/boatparts.py" - ``` - -## [Booking a Room](https://open.kattis.com/problems/bookingaroom) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bookingaroom.py" - ``` - -## [Boss Battle](https://open.kattis.com/problems/bossbattle) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bossbattle.py" - ``` - -## [Bounding Robots](https://open.kattis.com/problems/boundingrobots) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/boundingrobots.py" - ``` - -## [Bracket Matching](https://open.kattis.com/problems/bracketmatching) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bracketmatching.py" - ``` - -## [Breaking Branches](https://open.kattis.com/problems/breakingbranches) - -??? success "Solutions in 5 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/breakingbranches.go" - ``` - - === "Haskell" - - ```hs linenums="1" - --8<-- "src/easy/breakingbranches.hs" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/breakingbranches.java" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/breakingbranches.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/breakingbranches.py" - ``` - -## [Broken Calculator](https://open.kattis.com/problems/brokencalculator) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/brokencalculator.py" - ``` - -## [Broken Swords](https://open.kattis.com/problems/brokenswords) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/brokenswords.py" - ``` - -## [Buka](https://open.kattis.com/problems/buka) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/buka.py" - ``` - -## [Bus](https://open.kattis.com/problems/bus) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/bus.py" - ``` - -## [Bus Numbers](https://open.kattis.com/problems/busnumbers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/busnumbers.py" - ``` - -## [Calories From Fat](https://open.kattis.com/problems/calories) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/calories.py" - ``` - -## [Canadians, eh?](https://open.kattis.com/problems/canadianseh) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/canadianseh.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/canadianseh.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/canadianseh.py" - ``` - -## [Careful Ascent](https://open.kattis.com/problems/carefulascent) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/carefulascent.py" - ``` - -## [Solving for Carrots](https://open.kattis.com/problems/carrots) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/carrots.py" - ``` - -## [Cetiri](https://open.kattis.com/problems/cetiri) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/cetiri.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cetiri.py" - ``` - -## [Cetvrta](https://open.kattis.com/problems/cetvrta) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cetvrta.py" - ``` - -## [Chanukah Challenge](https://open.kattis.com/problems/chanukah) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/chanukah.py" - ``` - -## [Character Development](https://open.kattis.com/problems/character) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/character.py" - ``` - -## [Chocolate Division](https://open.kattis.com/problems/chocolatedivision) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/chocolatedivision.py" - ``` - -## [Preludes](https://open.kattis.com/problems/chopin) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/chopin.py" - ``` - -## [Cinema Crowds](https://open.kattis.com/problems/cinema) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cinema.py" - ``` - -## [Cinema Crowds 2](https://open.kattis.com/problems/cinema2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cinema2.py" - ``` - -## [Class Field Trip](https://open.kattis.com/problems/classfieldtrip) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/classfieldtrip.py" - ``` - -## [A Furious Cocktail](https://open.kattis.com/problems/cocktail) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cocktail.py" - ``` - -## [Code Cleanups](https://open.kattis.com/problems/codecleanups) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/codecleanups.py" - ``` - -## [Code to Save Lives](https://open.kattis.com/problems/codetosavelives) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/codetosavelives.py" - ``` - -## [Coffee Cup Combo](https://open.kattis.com/problems/coffeecupcombo) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/coffeecupcombo.py" - ``` - -## [Cold-puter Science](https://open.kattis.com/problems/cold) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cold.py" - ``` - -## [Competitive Arcade Basketball](https://open.kattis.com/problems/competitivearcadebasketball) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/competitivearcadebasketball.py" - ``` - -## [Completing the Square](https://open.kattis.com/problems/completingthesquare) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/completingthesquare.py" - ``` - -## [Compound Words](https://open.kattis.com/problems/compoundwords) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/compoundwords.py" - ``` - -## [Conformity](https://open.kattis.com/problems/conformity) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/conformity.py" - ``` - -## [Contingency Planning](https://open.kattis.com/problems/contingencyplanning) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/contingencyplanning.py" - ``` - -## [Cryptographer's Conundrum](https://open.kattis.com/problems/conundrum) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/conundrum.py" - ``` - -## [Convex Polygon Area](https://open.kattis.com/problems/convexpolygonarea) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/convexpolygonarea.py" - ``` - -## [Cooking Water](https://open.kattis.com/problems/cookingwater) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cookingwater.py" - ``` - -## [Costume Contest](https://open.kattis.com/problems/costumecontest) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/costumecontest.py" - ``` - -## [Count Doubles](https://open.kattis.com/problems/countdoubles) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/countdoubles.py" - ``` - -## [Counting Clauses](https://open.kattis.com/problems/countingclauses) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/countingclauses.py" - ``` - -## [Count the Vowels](https://open.kattis.com/problems/countthevowels) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/countthevowels.py" - ``` - -## [Course Scheduling](https://open.kattis.com/problems/coursescheduling) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/coursescheduling.py" - ``` - -## [CPR Number](https://open.kattis.com/problems/cprnummer) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cprnummer.py" - ``` - -## [Crne](https://open.kattis.com/problems/crne) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/crne.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/crne.py" - ``` - -## [Cudoviste](https://open.kattis.com/problems/cudoviste) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cudoviste.py" - ``` - -## [Stacking Cups](https://open.kattis.com/problems/cups) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cups.py" - ``` - -## [Cut in Line](https://open.kattis.com/problems/cutinline) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cutinline.py" - ``` - -## [Cut the Negativity](https://open.kattis.com/problems/cutthenegativity) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cutthenegativity.py" - ``` - -## [Cyanide Rivers](https://open.kattis.com/problems/cyaniderivers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cyaniderivers.py" - ``` - -## [Cypher Decypher](https://open.kattis.com/problems/cypherdecypher) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/cypherdecypher.py" - ``` - -## [Damaged Equation](https://open.kattis.com/problems/damagedequation) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/damagedequation.py" - ``` - -## [Datum](https://open.kattis.com/problems/datum) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/datum.py" - ``` - -## [Death Knight Hero](https://open.kattis.com/problems/deathknight) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/deathknight.py" - ``` - -## [Delimiter Soup](https://open.kattis.com/problems/delimitersoup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/delimitersoup.py" - ``` - -## [Detailed Differences](https://open.kattis.com/problems/detaileddifferences) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/detaileddifferences.py" - ``` - -## [Dice Cup](https://open.kattis.com/problems/dicecup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/dicecup.py" - ``` - -## [Dice Game](https://open.kattis.com/problems/dicegame) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/dicegame.py" - ``` - -## [Different Distances](https://open.kattis.com/problems/differentdistances) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/differentdistances.py" - ``` - -## [Digit Swap](https://open.kattis.com/problems/digitswap) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/digitswap.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/digitswap.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/digitswap.py" - ``` - -## [Disc District](https://open.kattis.com/problems/discdistrict) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/discdistrict.py" - ``` - -## [Divvying Up](https://open.kattis.com/problems/divvyingup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/divvyingup.py" - ``` - -## [Don't Fall Down Stairs](https://open.kattis.com/problems/dontfalldownstairs) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/dontfalldownstairs.py" - ``` - -## [Double Password](https://open.kattis.com/problems/doublepassword) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/doublepassword.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/doublepassword.py" - ``` - -## [Drinking Song](https://open.kattis.com/problems/drinkingsong) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/drinkingsong.py" - ``` - -## [Driver's Dilemma](https://open.kattis.com/problems/driversdilemma) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/driversdilemma.py" - ``` - -## [DRM Messages](https://open.kattis.com/problems/drmmessages) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/drmmessages.py" - ``` - -## [Drunk Vigenère](https://open.kattis.com/problems/drunkvigenere) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/drunkvigenere.py" - ``` - -## [Early Winter](https://open.kattis.com/problems/earlywinter) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/earlywinter.py" - ``` - -## [The Easiest Problem Is This One](https://open.kattis.com/problems/easiest) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/easiest.py" - ``` - -## [Echo Echo Echo](https://open.kattis.com/problems/echoechoecho) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/echoechoecho.py" - ``` - -## [Egypt](https://open.kattis.com/problems/egypt) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/egypt.py" - ``` - -## [Ekki dauði opna inni](https://open.kattis.com/problems/ekkidaudi) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ekkidaudi.py" - ``` - -## [Election Paradox](https://open.kattis.com/problems/electionparadox) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/electionparadox.py" - ``` - -## [Electrical Outlets](https://open.kattis.com/problems/electricaloutlets) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/electricaloutlets.py" - ``` - -## [Eligibility](https://open.kattis.com/problems/eligibility) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/eligibility.py" - ``` - -## [Encoded Message](https://open.kattis.com/problems/encodedmessage) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/encodedmessage.py" - ``` - -## [Endurvinnsla](https://open.kattis.com/problems/endurvinnsla) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/endurvinnsla.py" - ``` - -## [Engineering English](https://open.kattis.com/problems/engineeringenglish) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/engineeringenglish.py" - ``` - -## [Erase Securely](https://open.kattis.com/problems/erase) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/erase.py" - ``` - -## [Espresso!](https://open.kattis.com/problems/espresso) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/espresso.py" - ``` - -## [Estimating the Area of a Circle](https://open.kattis.com/problems/estimatingtheareaofacircle) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/estimatingtheareaofacircle.py" - ``` - -## [Evening Out 1](https://open.kattis.com/problems/eveningout1) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/eveningout1.py" - ``` - -## [Event Planning](https://open.kattis.com/problems/eventplanning) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/eventplanning.py" - ``` - -## [I've Been Everywhere, Man](https://open.kattis.com/problems/everywhere) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/everywhere.py" - ``` - -## [Exactly Electrical](https://open.kattis.com/problems/exactlyelectrical) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/exactlyelectrical.py" - ``` - -## [Exam](https://open.kattis.com/problems/exam) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/exam.py" - ``` - -## [Expected Earnings](https://open.kattis.com/problems/expectedearnings) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/expectedearnings.py" - ``` - -## [Eye of Sauron](https://open.kattis.com/problems/eyeofsauron) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/eyeofsauron.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/eyeofsauron.py" - ``` - -## [Fading Wind](https://open.kattis.com/problems/fadingwind) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fadingwind.py" - ``` - -## [Faktor](https://open.kattis.com/problems/faktor) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/faktor.py" - ``` - -## [Falling Apart](https://open.kattis.com/problems/fallingapart) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fallingapart.py" - ``` - -## [False Sense of Security](https://open.kattis.com/problems/falsesecurity) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/falsesecurity.py" - ``` - -## [Fast Food Prizes](https://open.kattis.com/problems/fastfood) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fastfood.py" - ``` - -## [FBI Universal Control Numbers](https://open.kattis.com/problems/fbiuniversal) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fbiuniversal.py" - ``` - -## [Framtíðar FIFA](https://open.kattis.com/problems/fifa) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fifa.py" - ``` - -## [Fifty Shades of Pink](https://open.kattis.com/problems/fiftyshades) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fiftyshades.py" - ``` - -## [Filip](https://open.kattis.com/problems/filip) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/filip.py" - ``` - -## [Final Exam](https://open.kattis.com/problems/finalexam2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/finalexam2.py" - ``` - -## [Finding An A](https://open.kattis.com/problems/findingana) - -??? success "Solutions in 3 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/findingana.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/findingana.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/findingana.py" - ``` - -## [FizzBuzz](https://open.kattis.com/problems/fizzbuzz) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fizzbuzz.py" - ``` - -## [Flexible Spaces](https://open.kattis.com/problems/flexible) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/flexible.py" - ``` - -## [Birthday Memorization](https://open.kattis.com/problems/fodelsedagsmemorisering) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fodelsedagsmemorisering.py" - ``` - -## [Forced Choice](https://open.kattis.com/problems/forcedchoice) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/forcedchoice.py" - ``` - -## [Free Food](https://open.kattis.com/problems/freefood) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/freefood.py" - ``` - -## [From A to B](https://open.kattis.com/problems/fromatob) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fromatob.py" - ``` - -## [FYI](https://open.kattis.com/problems/fyi) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/fyi.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/fyi.py" - ``` - -## [Gandalf's Spell](https://open.kattis.com/problems/gandalfsspell) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/gandalfsspell.py" - ``` - -## [GCD](https://open.kattis.com/problems/gcd) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/gcd.py" - ``` - -## [GCVWR](https://open.kattis.com/problems/gcvwr) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/gcvwr.py" - ``` - -## [Gene Block](https://open.kattis.com/problems/geneblock) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/geneblock.py" - ``` - -## [Gerrymandering](https://open.kattis.com/problems/gerrymandering) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/gerrymandering.py" - ``` - -## [Glasses Foggy, Mom's Spaghetti](https://open.kattis.com/problems/glassesfoggymomsspaghetti) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/glassesfoggymomsspaghetti.py" - ``` - -## [Goat Rope](https://open.kattis.com/problems/goatrope) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/goatrope.py" - ``` - -## [Goomba Stacks](https://open.kattis.com/problems/goombastacks) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/goombastacks.py" - ``` - -## [Grading](https://open.kattis.com/problems/grading) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/grading.py" - ``` - -## [Grass Seed Inc.](https://open.kattis.com/problems/grassseed) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/grassseed.py" - ``` - -## [Greedily Increasing Subsequence](https://open.kattis.com/problems/greedilyincreasing) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/greedilyincreasing.py" - ``` - -## [Greedy Polygons](https://open.kattis.com/problems/greedypolygons) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/greedypolygons.py" - ``` - -## [Greetings!](https://open.kattis.com/problems/greetings2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/greetings2.py" - ``` - -## [Watch Out For Those Hailstones!](https://open.kattis.com/problems/hailstone) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/hailstone.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hailstone.py" - ``` - -## [Hailstone Sequences](https://open.kattis.com/problems/hailstone2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hailstone2.py" - ``` - -## [Half a Cookie](https://open.kattis.com/problems/halfacookie) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/halfacookie.py" - ``` - -## [Hangman](https://open.kattis.com/problems/hangman) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hangman.py" - ``` - -## [Harshad Numbers](https://open.kattis.com/problems/harshadnumbers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/harshadnumbers.py" - ``` - -## [Haughty Cuisine](https://open.kattis.com/problems/haughtycuisine) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/haughtycuisine.py" - ``` - -## [Head Guard](https://open.kattis.com/problems/headguard) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/headguard.py" - ``` - -## [Heart Rate](https://open.kattis.com/problems/heartrate) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/heartrate.py" - ``` - -## [Homework](https://open.kattis.com/problems/heimavinna) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/heimavinna.py" - ``` - -## [Heir's Dilemma](https://open.kattis.com/problems/heirsdilemma) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/heirsdilemma.py" - ``` - -## [Heliocentric](https://open.kattis.com/problems/heliocentric) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/heliocentric.py" - ``` - -## [Hello World!](https://open.kattis.com/problems/hello) - -??? success "Solutions in 8 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/hello.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/hello.go" - ``` - - === "Haskell" - - ```hs linenums="1" - --8<-- "src/easy/hello.hs" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/hello.java" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/hello.js" - ``` - - === "Kotlin" - - ```kt linenums="1" - --8<-- "src/easy/hello.kt" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hello.py" - ``` - - === "Rust" - - ```rs linenums="1" - --8<-- "src/easy/hello.rs" - ``` - -## [Help a PhD candidate out!](https://open.kattis.com/problems/helpaphd) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/helpaphd.py" - ``` - -## [Herman](https://open.kattis.com/problems/herman) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/herman.py" - ``` - -## [Hissing Microphone](https://open.kattis.com/problems/hissingmicrophone) - -??? success "Solutions in 3 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/hissingmicrophone.cpp" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/hissingmicrophone.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hissingmicrophone.py" - ``` - -## [Hitting the Targets](https://open.kattis.com/problems/hittingtargets) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hittingtargets.py" - ``` - -## [Hot Hike](https://open.kattis.com/problems/hothike) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hothike.py" - ``` - -## [Hraðgreining](https://open.kattis.com/problems/hradgreining) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/hradgreining.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hradgreining.py" - ``` - -## [The Amazing Human Cannonball](https://open.kattis.com/problems/humancannonball2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/humancannonball2.py" - ``` - -## [Hvert Skal Mæta?](https://open.kattis.com/problems/hvertskalmaeta) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/hvertskalmaeta.py" - ``` - -## [ICPC Awards](https://open.kattis.com/problems/icpcawards) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/icpcawards.py" - ``` - -## [Illuminati Spotti](https://open.kattis.com/problems/illuminatispotti) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/illuminatispotti.py" - ``` - -## [Inheritance](https://open.kattis.com/problems/inheritance) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/inheritance.py" - ``` - -## [International Dates](https://open.kattis.com/problems/internationaldates) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/internationaldates.py" - ``` - -## [IsItHalloween.com](https://open.kattis.com/problems/isithalloween) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/isithalloween.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/isithalloween.py" - ``` - -## [Jabuke](https://open.kattis.com/problems/jabuke) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jabuke.py" - ``` - -## [Jack-O'-Lantern Juxtaposition](https://open.kattis.com/problems/jackolanternjuxtaposition) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jackolanternjuxtaposition.py" - ``` - -## [Janitor Troubles](https://open.kattis.com/problems/janitortroubles) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/janitortroubles.py" - ``` - -## [Jewelry Box](https://open.kattis.com/problems/jewelrybox) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jewelrybox.py" - ``` - -## [Job Expenses](https://open.kattis.com/problems/jobexpenses) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jobexpenses.py" - ``` - -## [Joint Jog Jam](https://open.kattis.com/problems/jointjogjam) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jointjogjam.py" - ``` - -## [Judging Moose](https://open.kattis.com/problems/judgingmoose) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/judgingmoose.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/judgingmoose.py" - ``` - -## [Jumbo Javelin](https://open.kattis.com/problems/jumbojavelin) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/jumbojavelin.py" - ``` - -## [Just a Minute](https://open.kattis.com/problems/justaminute) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/justaminute.py" - ``` - -## [Running Race](https://open.kattis.com/problems/kaploeb) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/kaploeb.py" - ``` - -## [Karte](https://open.kattis.com/problems/karte) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/karte.py" - ``` - -## [Kemija](https://open.kattis.com/problems/kemija08) - -??? success "Solutions in 2 languages" - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/kemija08.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/kemija08.py" - ``` - -## [The Key to Cryptography](https://open.kattis.com/problems/keytocrypto) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/keytocrypto.py" - ``` - -## [Keywords](https://open.kattis.com/problems/keywords) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/keywords.py" - ``` - -## [Kitten on a Tree](https://open.kattis.com/problems/kitten) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/kitten.py" - ``` - -## [Kleptography](https://open.kattis.com/problems/kleptography) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/kleptography.py" - ``` - -## [Knight Packing](https://open.kattis.com/problems/knightpacking) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/knightpacking.py" - ``` - -## [Knot Knowledge](https://open.kattis.com/problems/knotknowledge) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/knotknowledge.py" - ``` - -## [Kornislav](https://open.kattis.com/problems/kornislav) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/kornislav.py" - ``` - -## [Križaljka](https://open.kattis.com/problems/krizaljka) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/krizaljka.py" - ``` - -## [Ladder](https://open.kattis.com/problems/ladder) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ladder.py" - ``` - -## [Laptop Sticker](https://open.kattis.com/problems/laptopsticker) - -??? success "Solutions in 3 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/laptopsticker.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/laptopsticker.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/laptopsticker.py" - ``` - -## [Last Factorial Digit](https://open.kattis.com/problems/lastfactorialdigit) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/lastfactorialdigit.py" - ``` - -## [Left Beehind](https://open.kattis.com/problems/leftbeehind) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/leftbeehind.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/leftbeehind.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/leftbeehind.py" - ``` - -## [Leggja saman](https://open.kattis.com/problems/leggjasaman) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/leggjasaman.py" - ``` - -## [License to Launch](https://open.kattis.com/problems/licensetolaunch) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/licensetolaunch.py" - ``` - -## [Line Them Up](https://open.kattis.com/problems/lineup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/lineup.py" - ``` - -## [Locust Locus](https://open.kattis.com/problems/locustlocus) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/locustlocus.py" - ``` - -## [Logic Functions](https://open.kattis.com/problems/logicfunctions) - -??? success "Solution in C++" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/logicfunctions.cpp" - ``` - -## [Lost Lineup](https://open.kattis.com/problems/lostlineup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/lostlineup.py" - ``` - -## [Luhn's Checksum Algorithm](https://open.kattis.com/problems/luhnchecksum) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/luhnchecksum.py" - ``` - -## [Magic Trick](https://open.kattis.com/problems/magictrick) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/magictrick.py" - ``` - -## [Making A Meowth](https://open.kattis.com/problems/makingameowth) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/makingameowth.py" - ``` - -## [Identifying Map Tiles](https://open.kattis.com/problems/maptiles2) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/maptiles2.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/maptiles2.py" - ``` - -## [Marko](https://open.kattis.com/problems/marko) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/marko.py" - ``` - -## [Mars Window](https://open.kattis.com/problems/marswindow) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/marswindow.py" - ``` - -## [Math Homework](https://open.kattis.com/problems/mathhomework) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mathhomework.py" - ``` - -## [Mean Words](https://open.kattis.com/problems/meanwords) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/meanwords.py" - ``` - -## [Imperial Measurement](https://open.kattis.com/problems/measurement) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/measurement.py" - ``` - -## [Metaprogramming](https://open.kattis.com/problems/metaprogramming) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/metaprogramming.py" - ``` - -## [Methodic Multiplication](https://open.kattis.com/problems/methodicmultiplication) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/methodicmultiplication.py" - ``` - -## [Metronome](https://open.kattis.com/problems/metronome) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/metronome.py" - ``` - -## [Mia](https://open.kattis.com/problems/mia) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mia.py" - ``` - -## [Missing Numbers](https://open.kattis.com/problems/missingnumbers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/missingnumbers.py" - ``` - -## [Mixed Fractions](https://open.kattis.com/problems/mixedfractions) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mixedfractions.py" - ``` - -## [Mjehuric](https://open.kattis.com/problems/mjehuric) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mjehuric.py" - ``` - -## [Moderate Pace](https://open.kattis.com/problems/moderatepace) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/moderatepace.py" - ``` - -## [Modulo](https://open.kattis.com/problems/modulo) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/modulo.py" - ``` - -## [Monopoly](https://open.kattis.com/problems/monopol) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/monopol.py" - ``` - -## [Moscow Dream](https://open.kattis.com/problems/moscowdream) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/moscowdream.py" - ``` - -## [Mosquito Multiplication](https://open.kattis.com/problems/mosquito) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mosquito.py" - ``` - -## [MrCodeFormatGrader](https://open.kattis.com/problems/mrcodeformatgrader) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mrcodeformatgrader.py" - ``` - -## [Mult!](https://open.kattis.com/problems/mult) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mult.py" - ``` - -## [Mumble Rap](https://open.kattis.com/problems/mumblerap) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mumblerap.py" - ``` - -## [Musical Scales](https://open.kattis.com/problems/musicalscales) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/musicalscales.py" - ``` - -## [Music Your Way](https://open.kattis.com/problems/musicyourway) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/musicyourway.py" - ``` - -## [Mylla](https://open.kattis.com/problems/mylla2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/mylla2.py" - ``` - -## [Nasty Hacks](https://open.kattis.com/problems/nastyhacks) - -??? success "Solutions in 2 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/nastyhacks.cpp" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/nastyhacks.py" - ``` - -## [No Duplicates](https://open.kattis.com/problems/nodup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/nodup.py" - ``` - -## [No Thanks!](https://open.kattis.com/problems/nothanks) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/nothanks.py" - ``` - -## [N-sum](https://open.kattis.com/problems/nsum) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/nsum.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/nsum.py" - ``` - -## [Number Fun](https://open.kattis.com/problems/numberfun) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/numberfun.py" - ``` - -## [Odd Echo](https://open.kattis.com/problems/oddecho) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/oddecho.py" - ``` - -## [Odd Gnome](https://open.kattis.com/problems/oddgnome) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/oddgnome.py" - ``` - -## [Oddities](https://open.kattis.com/problems/oddities) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/oddities.py" - ``` - -## [Odd Man Out](https://open.kattis.com/problems/oddmanout) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/oddmanout.py" - ``` - -## [Off-World Records](https://open.kattis.com/problems/offworldrecords) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/offworldrecords.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/offworldrecords.py" - ``` - -## [Reverse](https://open.kattis.com/problems/ofugsnuid) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ofugsnuid.py" - ``` - -## [Oktalni](https://open.kattis.com/problems/oktalni) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/oktalni.py" - ``` - -## [One Chicken Per Person!](https://open.kattis.com/problems/onechicken) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/onechicken.py" - ``` - -## [Ordinals](https://open.kattis.com/problems/ordinals) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ordinals.py" - ``` - -## [Ornaments](https://open.kattis.com/problems/ornaments) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ornaments.py" - ``` - -## [Östgötska](https://open.kattis.com/problems/ostgotska) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ostgotska.py" - ``` - -## [Overdraft](https://open.kattis.com/problems/overdraft) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/overdraft.py" - ``` - -## [Óvissa](https://open.kattis.com/problems/ovissa) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ovissa.py" - ``` - -## [The Owl and the Fox](https://open.kattis.com/problems/owlandfox) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/owlandfox.py" - ``` - -## [Pachyderm Peanut Packing](https://open.kattis.com/problems/pachydermpeanutpacking) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pachydermpeanutpacking.py" - ``` - -## [Parent Gap](https://open.kattis.com/problems/parentgap) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/parentgap.py" - ``` - -## [Parket](https://open.kattis.com/problems/parket) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/parket.py" - ``` - -## [Parking](https://open.kattis.com/problems/parking) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/parking.py" - ``` - -## [Parking](https://open.kattis.com/problems/parking2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/parking2.py" - ``` - -## [Patuljci](https://open.kattis.com/problems/patuljci) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/patuljci.py" - ``` - -## [Paul Eigon](https://open.kattis.com/problems/pauleigon) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/pauleigon.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pauleigon.py" - ``` - -## [Peach Powder Polygon](https://open.kattis.com/problems/peachpowderpolygon) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/peachpowderpolygon.py" - ``` - -## [Pea Soup and Pancakes](https://open.kattis.com/problems/peasoup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/peasoup.py" - ``` - -## [Peragrams](https://open.kattis.com/problems/peragrams) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/peragrams.py" - ``` - -## [Perket](https://open.kattis.com/problems/perket) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/perket.py" - ``` - -## [Permuted Arithmetic Sequence](https://open.kattis.com/problems/permutedarithmeticsequence) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/permutedarithmeticsequence.py" - ``` - -## [Pervasive Heart Monitor](https://open.kattis.com/problems/pervasiveheartmonitor) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pervasiveheartmonitor.py" - ``` - -## [Pet](https://open.kattis.com/problems/pet) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pet.py" - ``` - -## [Piece of Cake!](https://open.kattis.com/problems/pieceofcake2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pieceofcake2.py" - ``` - -## [Pig Latin](https://open.kattis.com/problems/piglatin) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/piglatin.py" - ``` - -## [Pizza Crust](https://open.kattis.com/problems/pizza2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pizza2.py" - ``` - -## [Pizzubestun](https://open.kattis.com/problems/pizzubestun) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pizzubestun.py" - ``` - -## [Planetaris](https://open.kattis.com/problems/planetaris) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/planetaris.py" - ``` - -## [Planina](https://open.kattis.com/problems/planina) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/planina.py" - ``` - -## [Planting Trees](https://open.kattis.com/problems/plantingtrees) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/plantingtrees.py" - ``` - -## [Pokechat](https://open.kattis.com/problems/pokechat) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pokechat.py" - ``` - -## [Poker Hand](https://open.kattis.com/problems/pokerhand) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pokerhand.py" - ``` - -## [Polynomial Multiplication 1](https://open.kattis.com/problems/polymul1) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/polymul1.py" - ``` - -## [Popularity Contest](https://open.kattis.com/problems/popularitycontest) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/popularitycontest.py" - ``` - -## [Pot](https://open.kattis.com/problems/pot) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pot.py" - ``` - -## [Printing Costs](https://open.kattis.com/problems/printingcosts) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/printingcosts.py" - ``` - -## [Provinces and Gold](https://open.kattis.com/problems/provincesandgold) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/provincesandgold.py" - ``` - -## [Prsteni](https://open.kattis.com/problems/prsteni) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/prsteni.py" - ``` - -## [Prva](https://open.kattis.com/problems/prva) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/prva.py" - ``` - -## [Ptice](https://open.kattis.com/problems/ptice) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ptice.py" - ``` - -## [Building Pyramids](https://open.kattis.com/problems/pyramids) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/pyramids.py" - ``` - -## [Quality-Adjusted Life-Year](https://open.kattis.com/problems/qaly) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/qaly.py" - ``` - -## [Quadrant Selection](https://open.kattis.com/problems/quadrant) - -??? success "Solutions in 4 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/quadrant.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/quadrant.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/quadrant.py" - ``` - - === "Rust" - - ```rs linenums="1" - --8<-- "src/easy/quadrant.rs" - ``` - -## [Quick Brown Fox](https://open.kattis.com/problems/quickbrownfox) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/quickbrownfox.py" - ``` - -## [Quick Estimates](https://open.kattis.com/problems/quickestimate) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/quickestimate.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/quickestimate.py" - ``` - -## [Quite a Problem](https://open.kattis.com/problems/quiteaproblem) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/quiteaproblem.py" - ``` - -## [R2](https://open.kattis.com/problems/r2) - -??? success "Solutions in 4 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/r2.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/r2.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/r2.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/r2.py" - ``` - -## [Racing Around the Alphabet](https://open.kattis.com/problems/racingalphabet) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/racingalphabet.py" - ``` - -## [Ragged Right](https://open.kattis.com/problems/raggedright) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/raggedright.py" - ``` - -## [Railroad](https://open.kattis.com/problems/railroad2) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/railroad2.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/railroad2.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/railroad2.py" - ``` - -## [A Rank Problem](https://open.kattis.com/problems/rankproblem) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/rankproblem.py" - ``` - -## [Rating Problems](https://open.kattis.com/problems/ratingproblems) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/ratingproblems.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ratingproblems.py" - ``` - -## [A Rational Sequence 2](https://open.kattis.com/problems/rationalsequence2) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/rationalsequence2.py" - ``` - -## [Scaling Recipes](https://open.kattis.com/problems/recipes) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/recipes.py" - ``` - -## [Recount](https://open.kattis.com/problems/recount) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/recount.py" - ``` - -## [Rectangle Area](https://open.kattis.com/problems/rectanglearea) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/rectanglearea.py" - ``` - -## [Reduced ID Numbers](https://open.kattis.com/problems/reducedidnumbers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/reducedidnumbers.py" - ``` - -## [Relocation](https://open.kattis.com/problems/relocation) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/relocation.py" - ``` - -## [Restaurant Opening](https://open.kattis.com/problems/restaurantopening) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/restaurantopening.py" - ``` - -## [Reversed Binary Numbers](https://open.kattis.com/problems/reversebinary) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/reversebinary.py" - ``` - -## [Reverse Rot](https://open.kattis.com/problems/reverserot) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/reverserot.py" - ``` - -## [Riječi](https://open.kattis.com/problems/rijeci) - -??? success "Solutions in 3 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/rijeci.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/rijeci.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/rijeci.py" - ``` - -## [Roaming Romans](https://open.kattis.com/problems/romans) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/romans.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/romans.py" - ``` - -## [Run-Length Encoding, Run!](https://open.kattis.com/problems/runlengthencodingrun) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/runlengthencodingrun.py" - ``` - -## [Same Digits (Easy)](https://open.kattis.com/problems/samedigitseasy) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/samedigitseasy.py" - ``` - -## [Same Digits (Hard)](https://open.kattis.com/problems/samedigitshard) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/samedigitshard.py" - ``` - -## [Saving Daylight](https://open.kattis.com/problems/savingdaylight) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/savingdaylight.py" - ``` - -## [Saving For Retirement](https://open.kattis.com/problems/savingforretirement) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/savingforretirement.py" - ``` - -## [Scaling Recipe](https://open.kattis.com/problems/scalingrecipe) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/scalingrecipe.py" - ``` - -## [School Spirit](https://open.kattis.com/problems/schoolspirit) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/schoolspirit.py" - ``` - -## [Secret Message](https://open.kattis.com/problems/secretmessage) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/secretmessage.py" - ``` - -## [Secure Doors](https://open.kattis.com/problems/securedoors) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/securedoors.py" - ``` - -## [Server](https://open.kattis.com/problems/server) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/server.py" - ``` - -## [Seven Wonders](https://open.kattis.com/problems/sevenwonders) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sevenwonders.py" - ``` - -## [Shattered Cake](https://open.kattis.com/problems/shatteredcake) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/shatteredcake.py" - ``` - -## [Shopaholic](https://open.kattis.com/problems/shopaholic) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/shopaholic.py" - ``` - -## [Shopping List (Easy)](https://open.kattis.com/problems/shoppinglisteasy) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/shoppinglisteasy.py" - ``` - -## [Sibice](https://open.kattis.com/problems/sibice) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sibice.py" - ``` - -## [Sideways Sorting](https://open.kattis.com/problems/sidewayssorting) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sidewayssorting.py" - ``` - -## [Digit Product](https://open.kattis.com/problems/sifferprodukt) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sifferprodukt.py" - ``` - -## [Simone](https://open.kattis.com/problems/simone) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/simone.py" - ``` - -## [Simon Says](https://open.kattis.com/problems/simonsays) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/simonsays.py" - ``` - -## [Simple Addition](https://open.kattis.com/problems/simpleaddition) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/simpleaddition.py" - ``` - -## [Simple Factoring](https://open.kattis.com/problems/simplefactoring) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/simplefactoring.py" - ``` - -## [Sith](https://open.kattis.com/problems/sith) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sith.py" - ``` - -## [Sjecista](https://open.kattis.com/problems/sjecista) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sjecista.py" - ``` - -## [Skener](https://open.kattis.com/problems/skener) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/skener.py" - ``` - -## [Skocimis](https://open.kattis.com/problems/skocimis) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/skocimis.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/skocimis.py" - ``` - -## [Turn It Up!](https://open.kattis.com/problems/skruop) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/skruop.py" - ``` - -## [Slatkisi](https://open.kattis.com/problems/slatkisi) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/slatkisi.py" - ``` - -## [SMIL](https://open.kattis.com/problems/smil) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/smil.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/smil.py" - ``` - -## [Soda Slurper](https://open.kattis.com/problems/sodaslurper) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/sodaslurper.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sodaslurper.py" - ``` - -## [Sok](https://open.kattis.com/problems/sok) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sok.py" - ``` - -## [Some Sum](https://open.kattis.com/problems/somesum) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/somesum.py" - ``` - -## [Sort](https://open.kattis.com/problems/sort) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sort.py" - ``` - -## [Sort of Sorting](https://open.kattis.com/problems/sortofsorting) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sortofsorting.py" - ``` - -## [Sort Two Numbers](https://open.kattis.com/problems/sorttwonumbers) - -??? success "Solutions in 3 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/sorttwonumbers.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/sorttwonumbers.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sorttwonumbers.py" - ``` - -## [Sóttkví](https://open.kattis.com/problems/sottkvi) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/sottkvi.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sottkvi.py" - ``` - -## [Soylent](https://open.kattis.com/problems/soylent) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/soylent.py" - ``` - -## [Spavanac](https://open.kattis.com/problems/spavanac) - -??? success "Solutions in 3 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/spavanac.cpp" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/spavanac.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/spavanac.py" - ``` - -## [Speeding](https://open.kattis.com/problems/speeding) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/speeding.py" - ``` - -## [Speed Limit](https://open.kattis.com/problems/speedlimit) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/speedlimit.py" - ``` - -## [Spelling Bee](https://open.kattis.com/problems/spellingbee) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/spellingbee.py" - ``` - -## [Spritt](https://open.kattis.com/problems/spritt) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/spritt.py" - ``` - -## [Square Peg](https://open.kattis.com/problems/squarepeg) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/squarepeg.py" - ``` - -## [Stafur](https://open.kattis.com/problems/stafur) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/stafur.py" - ``` - -## [Statistics](https://open.kattis.com/problems/statistics) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/statistics.py" - ``` - -## [Sticky Keys](https://open.kattis.com/problems/stickykeys) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/stickykeys.py" - ``` - -## [Messy lists](https://open.kattis.com/problems/stokigalistor) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/stokigalistor.py" - ``` - -## [Stopwatch](https://open.kattis.com/problems/stopwatch) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/stopwatch.py" - ``` - -## [Streets Ahead](https://open.kattis.com/problems/streetsahead) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/streetsahead.py" - ``` - -## [Successful Zoom](https://open.kattis.com/problems/successfulzoom) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/successfulzoom.py" - ``` - -## [Sum Kind of Problem](https://open.kattis.com/problems/sumkindofproblem) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sumkindofproblem.py" - ``` - -## [Sum of the Others](https://open.kattis.com/problems/sumoftheothers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sumoftheothers.py" - ``` - -## [Sum Squared Digits Function](https://open.kattis.com/problems/sumsquareddigits) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sumsquareddigits.py" - ``` - -## [Sun and Moon](https://open.kattis.com/problems/sunandmoon) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/sunandmoon.py" - ``` - -## [Symmetric Order](https://open.kattis.com/problems/symmetricorder) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/symmetricorder.py" - ``` - -## [Synchronizing Lists](https://open.kattis.com/problems/synchronizinglists) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/synchronizinglists.py" - ``` - -## [T9 Spelling](https://open.kattis.com/problems/t9spelling) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/t9spelling.py" - ``` - -## [Tai's formula](https://open.kattis.com/problems/taisformula) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/taisformula.py" - ``` - -## [Tajna](https://open.kattis.com/problems/tajna) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tajna.py" - ``` - -## [Tarifa](https://open.kattis.com/problems/tarifa) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tarifa.py" - ``` - -## [Temperature Confusion](https://open.kattis.com/problems/temperatureconfusion) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/temperatureconfusion.py" - ``` - -## [Test Drive](https://open.kattis.com/problems/testdrive) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/testdrive.py" - ``` - -## [Tetration](https://open.kattis.com/problems/tetration) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tetration.py" - ``` - -## [Thanos](https://open.kattis.com/problems/thanos) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/thanos.py" - ``` - -## [The Grand Adventure](https://open.kattis.com/problems/thegrandadventure) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/thegrandadventure.py" - ``` - -## [The Last Problem](https://open.kattis.com/problems/thelastproblem) - -??? success "Solutions in 2 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/thelastproblem.go" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/thelastproblem.py" - ``` - -## [This Ain't Your Grandpa's Checkerboard](https://open.kattis.com/problems/thisaintyourgrandpascheckerboard) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/thisaintyourgrandpascheckerboard.py" - ``` - -## [Stuck In A Time Loop](https://open.kattis.com/problems/timeloop) - -??? success "Solutions in 2 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/timeloop.cpp" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/timeloop.py" - ``` - -## [Title Cost](https://open.kattis.com/problems/titlecost) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/titlecost.py" - ``` - -## [Töflur](https://open.kattis.com/problems/toflur) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/toflur.py" - ``` - -## [Toilet Seat](https://open.kattis.com/problems/toilet) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/toilet.py" - ``` - -## [ToLower](https://open.kattis.com/problems/tolower) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tolower.py" - ``` - -## [Tower Construction](https://open.kattis.com/problems/tornbygge) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tornbygge.py" - ``` - -## [Touchscreen Keyboard](https://open.kattis.com/problems/touchscreenkeyboard) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/touchscreenkeyboard.py" - ``` - -## [Transit Woes](https://open.kattis.com/problems/transitwoes) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/transitwoes.py" - ``` - -## [Tri](https://open.kattis.com/problems/tri) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tri.py" - ``` - -## [Triangle Area](https://open.kattis.com/problems/triarea) - -??? success "Solutions in 4 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/triarea.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/triarea.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/triarea.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/triarea.py" - ``` - -## [Trik](https://open.kattis.com/problems/trik) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/trik.py" - ``` - -## [Triple Texting](https://open.kattis.com/problems/tripletexting) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/tripletexting.py" - ``` - -## [Take Two Stones](https://open.kattis.com/problems/twostones) - -??? success "Solutions in 6 languages" - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/twostones.go" - ``` - - === "Haskell" - - ```hs linenums="1" - --8<-- "src/easy/twostones.hs" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/twostones.java" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/twostones.js" - ``` - - === "Kotlin" - - ```kt linenums="1" - --8<-- "src/easy/twostones.kt" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/twostones.py" - ``` - -## [Two-sum](https://open.kattis.com/problems/twosum) - -??? success "Solutions in 4 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/twosum.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/twosum.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/twosum.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/twosum.py" - ``` - -## [Úllen dúllen doff](https://open.kattis.com/problems/ullendullendoff) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ullendullendoff.py" - ``` - -## [Ultimate Binary Watch](https://open.kattis.com/problems/ultimatebinarywatch) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/ultimatebinarywatch.py" - ``` - -## [Undead or Alive](https://open.kattis.com/problems/undeadoralive) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/undeadoralive.py" - ``` - -## [Unlock Pattern](https://open.kattis.com/problems/unlockpattern) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/unlockpattern.py" - ``` - -## [Arrangement](https://open.kattis.com/problems/upprodun) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/upprodun.py" - ``` - -## [UTF-8](https://open.kattis.com/problems/utf8) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/utf8.py" - ``` - -## [Vaccine Efficacy](https://open.kattis.com/problems/vaccineefficacy) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vaccineefficacy.py" - ``` - -## [Right-of-Way](https://open.kattis.com/problems/vajningsplikt) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vajningsplikt.py" - ``` - -## [Variable Arithmetic](https://open.kattis.com/problems/variablearithmetic) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/variablearithmetic.py" - ``` - -## [Veci](https://open.kattis.com/problems/veci) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/veci.py" - ``` - -## [Veður - Lokaðar heiðar](https://open.kattis.com/problems/vedurheidar) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vedurheidar.py" - ``` - -## [Veður - Vindhraði](https://open.kattis.com/problems/vedurvindhradi) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vedurvindhradi.py" - ``` - -## [Vefþjónatjón](https://open.kattis.com/problems/vefthjonatjon) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vefthjonatjon.py" - ``` - -## [Velkomin!](https://open.kattis.com/problems/velkomin) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/velkomin.py" - ``` - -## [Who wins?](https://open.kattis.com/problems/vemvinner) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vemvinner.py" - ``` - -## [Video Speedup](https://open.kattis.com/problems/videospeedup) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/videospeedup.py" - ``` - -## [Viðsnúningur](https://open.kattis.com/problems/vidsnuningur) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vidsnuningur.py" - ``` - -## [Popular Vote](https://open.kattis.com/problems/vote) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/vote.py" - ``` - -## [Warehouse](https://open.kattis.com/problems/warehouse) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/warehouse.py" - ``` - -## [Weak Vertices](https://open.kattis.com/problems/weakvertices) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/weakvertices.py" - ``` - -## [What does the fox say?](https://open.kattis.com/problems/whatdoesthefoxsay) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/whatdoesthefoxsay.py" - ``` - -## [Which is Greater?](https://open.kattis.com/problems/whichisgreater) - -??? success "Solutions in 5 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/easy/whichisgreater.cpp" - ``` - - === "Go" - - ```go linenums="1" - --8<-- "src/easy/whichisgreater.go" - ``` - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/whichisgreater.java" - ``` - - === "JavaScript" - - ```js linenums="1" - --8<-- "src/easy/whichisgreater.js" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/whichisgreater.py" - ``` - -## [Wizard of Odds](https://open.kattis.com/problems/wizardofodds) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/wizardofodds.py" - ``` - -## [Yin and Yang Stones](https://open.kattis.com/problems/yinyangstones) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/yinyangstones.py" - ``` - -## [Yoda](https://open.kattis.com/problems/yoda) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/yoda.py" - ``` - -## [Zamka](https://open.kattis.com/problems/zamka) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/zamka.py" - ``` - -## [Stand on Zanzibar](https://open.kattis.com/problems/zanzibar) - -??? success "Solutions in 2 languages" - - === "Java" - - ```java linenums="1" - --8<-- "src/easy/zanzibar.java" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/zanzibar.py" - ``` - -## [Un-bear-able Zoo](https://open.kattis.com/problems/zoo) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/zoo.py" - ``` - -## [Zoom](https://open.kattis.com/problems/zoom) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/easy/zoom.py" - ``` diff --git a/docs/hard.md b/docs/hard.md deleted file mode 100644 index a202946..0000000 --- a/docs/hard.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -hide: - - toc ---- - -# Difficulty - Hard (as of 2023-01-16) - -## [10 Kinds of People](https://open.kattis.com/problems/10kindsofpeople) - -??? failure "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/hard/10kindsofpeople.py" - ``` diff --git a/docs/index.md b/docs/index.md index 90f1858..2b333c0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,11 +6,11 @@ ## Summary by Difficulty -- [Easy ^425^](easy.md) +- Easy ^416^ -- [Medium ^17^](medium.md) +- Medium ^26^ -- [Hard ^1^](hard.md) +- Hard ^1^ ## Summary by Initial diff --git a/docs/medium.md b/docs/medium.md deleted file mode 100644 index 91ca754..0000000 --- a/docs/medium.md +++ /dev/null @@ -1,182 +0,0 @@ ---- -hide: - - toc ---- - -# Difficulty - Medium (as of 2023-02-01) - -## [1-D Frogger (Easy)](https://open.kattis.com/problems/1dfroggereasy) - -??? success "Solutions in 2 languages" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/medium/1dfroggereasy.cpp" - ``` - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/1dfroggereasy.py" - ``` - -## [4 thought](https://open.kattis.com/problems/4thought) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/4thought.py" - ``` - -## [Adding Words](https://open.kattis.com/problems/addingwords) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/addingwords.py" - ``` - -## [Alex and Barb](https://open.kattis.com/problems/alexandbarb) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/alexandbarb.py" - ``` - -## [Another Candies](https://open.kattis.com/problems/anothercandies) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/anothercandies.py" - ``` - -## [Arithmetic](https://open.kattis.com/problems/arithmetic) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/arithmetic.py" - ``` - -## [Catalan Numbers](https://open.kattis.com/problems/catalan) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/catalan.py" - ``` - -## [CD](https://open.kattis.com/problems/cd) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/cd.py" - ``` - -## [A Different Problem](https://open.kattis.com/problems/different) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/different.py" - ``` - -## [Guess the Number](https://open.kattis.com/problems/guess) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/guess.py" - ``` - -## [Lamps](https://open.kattis.com/problems/lamps) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/lamps.py" - ``` - -## [A List Game](https://open.kattis.com/problems/listgame) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/listgame.py" - ``` - -## [A Vicious Pikeman (Easy)](https://open.kattis.com/problems/pikemaneasy) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/pikemaneasy.py" - ``` - -## [Simon Says](https://open.kattis.com/problems/simon) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/simon.py" - ``` - -## [Vector Functions](https://open.kattis.com/problems/vectorfunctions) - -??? success "Solution in C++" - - === "C++" - - ```cpp linenums="1" - --8<-- "src/medium/vectorfunctions.cpp" - ``` - -## [WERTYU](https://open.kattis.com/problems/wertyu) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/wertyu.py" - ``` - -## [Words for Numbers](https://open.kattis.com/problems/wordsfornumbers) - -??? success "Solution in Python" - - === "Python" - - ```py linenums="1" - --8<-- "src/medium/wordsfornumbers.py" - ``` diff --git a/docs/solutions.md b/docs/solutions.md new file mode 100644 index 0000000..d40bb91 --- /dev/null +++ b/docs/solutions.md @@ -0,0 +1,4968 @@ +--- +hide: + - toc +--- + +## :red_circle: [10 Kinds of People](https://open.kattis.com/problems/10kindsofpeople) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/10kindsofpeople.py" + ``` + +## :yellow_circle: [1-D Frogger (Easy)](https://open.kattis.com/problems/1dfroggereasy) + +??? success "Solutions in 2 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/1dfroggereasy.cpp" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/1dfroggereasy.py" + ``` + +## :yellow_circle: [3D Printed Statues](https://open.kattis.com/problems/3dprinter) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/3dprinter.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/3dprinter.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/3dprinter.py" + ``` + +## :yellow_circle: [4 thought](https://open.kattis.com/problems/4thought) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/4thought.py" + ``` + +## :yellow_circle: [99 Problems](https://open.kattis.com/problems/99problems) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/99problems.py" + ``` + +## :green_circle: [Aaah!](https://open.kattis.com/problems/aaah) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/aaah.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/aaah.py" + ``` + +## :green_circle: [ABC](https://open.kattis.com/problems/abc) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/abc.py" + ``` + +## :yellow_circle: [Above Average](https://open.kattis.com/problems/aboveaverage) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/aboveaverage.py" + ``` + +## :green_circle: [ACM Contest Scoring](https://open.kattis.com/problems/acm) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/acm.py" + ``` + +## :green_circle: [Adding Trouble](https://open.kattis.com/problems/addingtrouble) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/addingtrouble.py" + ``` + +## :yellow_circle: [Adding Words](https://open.kattis.com/problems/addingwords) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/addingwords.py" + ``` + +## :green_circle: [Add Two Numbers](https://open.kattis.com/problems/addtwonumbers) + +??? success "Solutions in 4 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/addtwonumbers.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/addtwonumbers.java" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/addtwonumbers.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/addtwonumbers.py" + ``` + +## :green_circle: [Akcija](https://open.kattis.com/problems/akcija) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/akcija.py" + ``` + +## :yellow_circle: [Alex and Barb](https://open.kattis.com/problems/alexandbarb) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/alexandbarb.py" + ``` + +## :green_circle: [Alphabet Spam](https://open.kattis.com/problems/alphabetspam) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/alphabetspam.py" + ``` + +## :green_circle: [Amerískur vinnustaður](https://open.kattis.com/problems/ameriskur) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ameriskur.py" + ``` + +## :green_circle: [Amsterdam Distance](https://open.kattis.com/problems/amsterdamdistance) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/amsterdamdistance.py" + ``` + +## :green_circle: [A New Alphabet](https://open.kattis.com/problems/anewalphabet) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/anewalphabet.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/anewalphabet.py" + ``` + +## :green_circle: [Another Brick in the Wall](https://open.kattis.com/problems/anotherbrick) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/anotherbrick.py" + ``` + +## :green_circle: [Another Candies](https://open.kattis.com/problems/anothercandies) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/anothercandies.py" + ``` + +## :green_circle: [Apaxiaaaaaaaaaaaans!](https://open.kattis.com/problems/apaxiaaans) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/apaxiaaans.py" + ``` + +## :green_circle: [Honour Thy (Apaxian) Parent](https://open.kattis.com/problems/apaxianparent) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/apaxianparent.py" + ``` + +## :green_circle: [A Real Challenge](https://open.kattis.com/problems/areal) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/areal.go" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/areal.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/areal.py" + ``` + +## :green_circle: [Are You Listening?](https://open.kattis.com/problems/areyoulistening) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/areyoulistening.py" + ``` + +## :yellow_circle: [Arithmetic](https://open.kattis.com/problems/arithmetic) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/arithmetic.py" + ``` + +## :green_circle: [Arithmetic Functions](https://open.kattis.com/problems/arithmeticfunctions) + +??? success "Solution in C++" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/arithmeticfunctions.cpp" + ``` + +## :green_circle: [Army Strength (Easy)](https://open.kattis.com/problems/armystrengtheasy) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/armystrengtheasy.py" + ``` + +## :green_circle: [Army Strength (Hard)](https://open.kattis.com/problems/armystrengthhard) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/armystrengthhard.py" + ``` + +## :green_circle: [Astrological Sign](https://open.kattis.com/problems/astrologicalsign) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/astrologicalsign.py" + ``` + +## :green_circle: [Autori](https://open.kattis.com/problems/autori) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/autori.py" + ``` + +## :green_circle: [Average Character](https://open.kattis.com/problems/averagecharacter) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/averagecharacter.py" + ``` + +## :green_circle: [Avion](https://open.kattis.com/problems/avion) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/avion.py" + ``` + +## :green_circle: [Babelfish](https://open.kattis.com/problems/babelfish) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/babelfish.py" + ``` + +## :green_circle: [Baby Bites](https://open.kattis.com/problems/babybites) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/babybites.py" + ``` + +## :green_circle: [Baby Panda](https://open.kattis.com/problems/babypanda) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/babypanda.py" + ``` + +## :green_circle: [Backspace](https://open.kattis.com/problems/backspace) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/backspace.py" + ``` + +## :green_circle: [Bacon, Eggs, and Spam](https://open.kattis.com/problems/baconeggsandspam) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/baconeggsandspam.py" + ``` + +## :green_circle: [Bannorð](https://open.kattis.com/problems/bannord) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bannord.py" + ``` + +## :green_circle: [Basketball One-on-One](https://open.kattis.com/problems/basketballoneonone) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/basketballoneonone.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/basketballoneonone.py" + ``` + +## :green_circle: [Batter Up](https://open.kattis.com/problems/batterup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/batterup.py" + ``` + +## :green_circle: [Beat the Spread!](https://open.kattis.com/problems/beatspread) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/beatspread.py" + ``` + +## :green_circle: [Beavergnaw](https://open.kattis.com/problems/beavergnaw) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/beavergnaw.py" + ``` + +## :yellow_circle: [Beekeeper](https://open.kattis.com/problems/beekeeper) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/beekeeper.py" + ``` + +## :green_circle: [Bela](https://open.kattis.com/problems/bela) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bela.py" + ``` + +## :green_circle: [Betting](https://open.kattis.com/problems/betting) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/betting.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/betting.py" + ``` + +## :green_circle: [Bijele](https://open.kattis.com/problems/bijele) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bijele.py" + ``` + +## :green_circle: [Black Friday](https://open.kattis.com/problems/blackfriday) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/blackfriday.py" + ``` + +## :green_circle: [Blueberry Waffle](https://open.kattis.com/problems/blueberrywaffle) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/blueberrywaffle.py" + ``` + +## :green_circle: [Bluetooth](https://open.kattis.com/problems/bluetooth) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bluetooth.py" + ``` + +## :green_circle: [Boat Parts](https://open.kattis.com/problems/boatparts) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/boatparts.py" + ``` + +## :green_circle: [Booking a Room](https://open.kattis.com/problems/bookingaroom) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bookingaroom.py" + ``` + +## :green_circle: [Boss Battle](https://open.kattis.com/problems/bossbattle) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bossbattle.py" + ``` + +## :green_circle: [Bounding Robots](https://open.kattis.com/problems/boundingrobots) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/boundingrobots.py" + ``` + +## :green_circle: [Bracket Matching](https://open.kattis.com/problems/bracketmatching) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bracketmatching.py" + ``` + +## :green_circle: [Breaking Branches](https://open.kattis.com/problems/breakingbranches) + +??? success "Solutions in 5 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/breakingbranches.go" + ``` + + === "Haskell" + + ```hs linenums="1" + --8<-- "src/breakingbranches.hs" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/breakingbranches.java" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/breakingbranches.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/breakingbranches.py" + ``` + +## :green_circle: [Broken Calculator](https://open.kattis.com/problems/brokencalculator) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/brokencalculator.py" + ``` + +## :green_circle: [Broken Swords](https://open.kattis.com/problems/brokenswords) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/brokenswords.py" + ``` + +## :green_circle: [Buka](https://open.kattis.com/problems/buka) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/buka.py" + ``` + +## :green_circle: [Bus](https://open.kattis.com/problems/bus) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/bus.py" + ``` + +## :green_circle: [Bus Numbers](https://open.kattis.com/problems/busnumbers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/busnumbers.py" + ``` + +## :green_circle: [Calories From Fat](https://open.kattis.com/problems/calories) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/calories.py" + ``` + +## :green_circle: [Canadians, eh?](https://open.kattis.com/problems/canadianseh) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/canadianseh.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/canadianseh.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/canadianseh.py" + ``` + +## :green_circle: [Careful Ascent](https://open.kattis.com/problems/carefulascent) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/carefulascent.py" + ``` + +## :green_circle: [Solving for Carrots](https://open.kattis.com/problems/carrots) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/carrots.py" + ``` + +## :yellow_circle: [Catalan Numbers](https://open.kattis.com/problems/catalan) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/catalan.py" + ``` + +## :yellow_circle: [CD](https://open.kattis.com/problems/cd) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cd.py" + ``` + +## :green_circle: [Cetiri](https://open.kattis.com/problems/cetiri) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/cetiri.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/cetiri.py" + ``` + +## :green_circle: [Cetvrta](https://open.kattis.com/problems/cetvrta) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cetvrta.py" + ``` + +## :green_circle: [Chanukah Challenge](https://open.kattis.com/problems/chanukah) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/chanukah.py" + ``` + +## :green_circle: [Character Development](https://open.kattis.com/problems/character) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/character.py" + ``` + +## :green_circle: [Chocolate Division](https://open.kattis.com/problems/chocolatedivision) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/chocolatedivision.py" + ``` + +## :green_circle: [Preludes](https://open.kattis.com/problems/chopin) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/chopin.py" + ``` + +## :green_circle: [Cinema Crowds](https://open.kattis.com/problems/cinema) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cinema.py" + ``` + +## :green_circle: [Cinema Crowds 2](https://open.kattis.com/problems/cinema2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cinema2.py" + ``` + +## :green_circle: [Class Field Trip](https://open.kattis.com/problems/classfieldtrip) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/classfieldtrip.py" + ``` + +## :yellow_circle: [A Furious Cocktail](https://open.kattis.com/problems/cocktail) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cocktail.py" + ``` + +## :yellow_circle: [Code Cleanups](https://open.kattis.com/problems/codecleanups) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/codecleanups.py" + ``` + +## :green_circle: [Code to Save Lives](https://open.kattis.com/problems/codetosavelives) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/codetosavelives.py" + ``` + +## :green_circle: [Coffee Cup Combo](https://open.kattis.com/problems/coffeecupcombo) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/coffeecupcombo.py" + ``` + +## :green_circle: [Cold-puter Science](https://open.kattis.com/problems/cold) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cold.py" + ``` + +## :green_circle: [Competitive Arcade Basketball](https://open.kattis.com/problems/competitivearcadebasketball) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/competitivearcadebasketball.py" + ``` + +## :green_circle: [Completing the Square](https://open.kattis.com/problems/completingthesquare) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/completingthesquare.py" + ``` + +## :green_circle: [Compound Words](https://open.kattis.com/problems/compoundwords) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/compoundwords.py" + ``` + +## :green_circle: [Conformity](https://open.kattis.com/problems/conformity) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/conformity.py" + ``` + +## :green_circle: [Contingency Planning](https://open.kattis.com/problems/contingencyplanning) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/contingencyplanning.py" + ``` + +## :green_circle: [Cryptographer's Conundrum](https://open.kattis.com/problems/conundrum) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/conundrum.py" + ``` + +## :green_circle: [Convex Polygon Area](https://open.kattis.com/problems/convexpolygonarea) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/convexpolygonarea.py" + ``` + +## :green_circle: [Cooking Water](https://open.kattis.com/problems/cookingwater) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cookingwater.py" + ``` + +## :green_circle: [Costume Contest](https://open.kattis.com/problems/costumecontest) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/costumecontest.py" + ``` + +## :green_circle: [Count Doubles](https://open.kattis.com/problems/countdoubles) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/countdoubles.py" + ``` + +## :green_circle: [Counting Clauses](https://open.kattis.com/problems/countingclauses) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/countingclauses.py" + ``` + +## :green_circle: [Count the Vowels](https://open.kattis.com/problems/countthevowels) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/countthevowels.py" + ``` + +## :green_circle: [Course Scheduling](https://open.kattis.com/problems/coursescheduling) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/coursescheduling.py" + ``` + +## :green_circle: [CPR Number](https://open.kattis.com/problems/cprnummer) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cprnummer.py" + ``` + +## :green_circle: [Crne](https://open.kattis.com/problems/crne) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/crne.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/crne.py" + ``` + +## :green_circle: [Cudoviste](https://open.kattis.com/problems/cudoviste) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cudoviste.py" + ``` + +## :green_circle: [Stacking Cups](https://open.kattis.com/problems/cups) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cups.py" + ``` + +## :green_circle: [Cut in Line](https://open.kattis.com/problems/cutinline) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cutinline.py" + ``` + +## :green_circle: [Cut the Negativity](https://open.kattis.com/problems/cutthenegativity) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cutthenegativity.py" + ``` + +## :green_circle: [Cyanide Rivers](https://open.kattis.com/problems/cyaniderivers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cyaniderivers.py" + ``` + +## :green_circle: [Cypher Decypher](https://open.kattis.com/problems/cypherdecypher) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/cypherdecypher.py" + ``` + +## :green_circle: [Damaged Equation](https://open.kattis.com/problems/damagedequation) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/damagedequation.py" + ``` + +## :green_circle: [Datum](https://open.kattis.com/problems/datum) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/datum.py" + ``` + +## :green_circle: [Death Knight Hero](https://open.kattis.com/problems/deathknight) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/deathknight.py" + ``` + +## :green_circle: [Delimiter Soup](https://open.kattis.com/problems/delimitersoup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/delimitersoup.py" + ``` + +## :green_circle: [Detailed Differences](https://open.kattis.com/problems/detaileddifferences) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/detaileddifferences.py" + ``` + +## :green_circle: [Dice Cup](https://open.kattis.com/problems/dicecup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/dicecup.py" + ``` + +## :green_circle: [Dice Game](https://open.kattis.com/problems/dicegame) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/dicegame.py" + ``` + +## :yellow_circle: [A Different Problem](https://open.kattis.com/problems/different) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/different.py" + ``` + +## :green_circle: [Different Distances](https://open.kattis.com/problems/differentdistances) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/differentdistances.py" + ``` + +## :green_circle: [Digit Swap](https://open.kattis.com/problems/digitswap) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/digitswap.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/digitswap.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/digitswap.py" + ``` + +## :green_circle: [Disc District](https://open.kattis.com/problems/discdistrict) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/discdistrict.py" + ``` + +## :green_circle: [Divvying Up](https://open.kattis.com/problems/divvyingup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/divvyingup.py" + ``` + +## :green_circle: [Don't Fall Down Stairs](https://open.kattis.com/problems/dontfalldownstairs) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/dontfalldownstairs.py" + ``` + +## :green_circle: [Double Password](https://open.kattis.com/problems/doublepassword) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/doublepassword.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/doublepassword.py" + ``` + +## :green_circle: [Drinking Song](https://open.kattis.com/problems/drinkingsong) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/drinkingsong.py" + ``` + +## :green_circle: [Driver's Dilemma](https://open.kattis.com/problems/driversdilemma) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/driversdilemma.py" + ``` + +## :green_circle: [DRM Messages](https://open.kattis.com/problems/drmmessages) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/drmmessages.py" + ``` + +## :green_circle: [Drunk Vigenère](https://open.kattis.com/problems/drunkvigenere) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/drunkvigenere.py" + ``` + +## :green_circle: [Early Winter](https://open.kattis.com/problems/earlywinter) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/earlywinter.py" + ``` + +## :green_circle: [The Easiest Problem Is This One](https://open.kattis.com/problems/easiest) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/easiest.py" + ``` + +## :green_circle: [Echo Echo Echo](https://open.kattis.com/problems/echoechoecho) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/echoechoecho.py" + ``` + +## :green_circle: [Egypt](https://open.kattis.com/problems/egypt) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/egypt.py" + ``` + +## :green_circle: [Ekki dauði opna inni](https://open.kattis.com/problems/ekkidaudi) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ekkidaudi.py" + ``` + +## :green_circle: [Election Paradox](https://open.kattis.com/problems/electionparadox) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/electionparadox.py" + ``` + +## :green_circle: [Electrical Outlets](https://open.kattis.com/problems/electricaloutlets) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/electricaloutlets.py" + ``` + +## :green_circle: [Eligibility](https://open.kattis.com/problems/eligibility) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/eligibility.py" + ``` + +## :green_circle: [Encoded Message](https://open.kattis.com/problems/encodedmessage) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/encodedmessage.py" + ``` + +## :green_circle: [Endurvinnsla](https://open.kattis.com/problems/endurvinnsla) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/endurvinnsla.py" + ``` + +## :green_circle: [Engineering English](https://open.kattis.com/problems/engineeringenglish) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/engineeringenglish.py" + ``` + +## :green_circle: [Erase Securely](https://open.kattis.com/problems/erase) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/erase.py" + ``` + +## :green_circle: [Espresso!](https://open.kattis.com/problems/espresso) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/espresso.py" + ``` + +## :green_circle: [Estimating the Area of a Circle](https://open.kattis.com/problems/estimatingtheareaofacircle) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/estimatingtheareaofacircle.py" + ``` + +## :green_circle: [Evening Out 1](https://open.kattis.com/problems/eveningout1) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/eveningout1.py" + ``` + +## :green_circle: [Event Planning](https://open.kattis.com/problems/eventplanning) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/eventplanning.py" + ``` + +## :green_circle: [I've Been Everywhere, Man](https://open.kattis.com/problems/everywhere) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/everywhere.py" + ``` + +## :green_circle: [Exactly Electrical](https://open.kattis.com/problems/exactlyelectrical) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/exactlyelectrical.py" + ``` + +## :green_circle: [Exam](https://open.kattis.com/problems/exam) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/exam.py" + ``` + +## :green_circle: [Expected Earnings](https://open.kattis.com/problems/expectedearnings) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/expectedearnings.py" + ``` + +## :green_circle: [Eye of Sauron](https://open.kattis.com/problems/eyeofsauron) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/eyeofsauron.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/eyeofsauron.py" + ``` + +## :green_circle: [Fading Wind](https://open.kattis.com/problems/fadingwind) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fadingwind.py" + ``` + +## :green_circle: [Faktor](https://open.kattis.com/problems/faktor) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/faktor.py" + ``` + +## :green_circle: [Falling Apart](https://open.kattis.com/problems/fallingapart) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fallingapart.py" + ``` + +## :green_circle: [False Sense of Security](https://open.kattis.com/problems/falsesecurity) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/falsesecurity.py" + ``` + +## :green_circle: [Fast Food Prizes](https://open.kattis.com/problems/fastfood) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fastfood.py" + ``` + +## :green_circle: [FBI Universal Control Numbers](https://open.kattis.com/problems/fbiuniversal) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fbiuniversal.py" + ``` + +## :green_circle: [Framtíðar FIFA](https://open.kattis.com/problems/fifa) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fifa.py" + ``` + +## :green_circle: [Fifty Shades of Pink](https://open.kattis.com/problems/fiftyshades) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fiftyshades.py" + ``` + +## :green_circle: [Filip](https://open.kattis.com/problems/filip) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/filip.py" + ``` + +## :green_circle: [Final Exam](https://open.kattis.com/problems/finalexam2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/finalexam2.py" + ``` + +## :green_circle: [Finding An A](https://open.kattis.com/problems/findingana) + +??? success "Solutions in 3 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/findingana.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/findingana.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/findingana.py" + ``` + +## :green_circle: [FizzBuzz](https://open.kattis.com/problems/fizzbuzz) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fizzbuzz.py" + ``` + +## :green_circle: [Flexible Spaces](https://open.kattis.com/problems/flexible) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/flexible.py" + ``` + +## :green_circle: [Birthday Memorization](https://open.kattis.com/problems/fodelsedagsmemorisering) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fodelsedagsmemorisering.py" + ``` + +## :green_circle: [Forced Choice](https://open.kattis.com/problems/forcedchoice) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/forcedchoice.py" + ``` + +## :green_circle: [Free Food](https://open.kattis.com/problems/freefood) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/freefood.py" + ``` + +## :green_circle: [From A to B](https://open.kattis.com/problems/fromatob) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/fromatob.py" + ``` + +## :green_circle: [FYI](https://open.kattis.com/problems/fyi) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/fyi.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/fyi.py" + ``` + +## :green_circle: [Gandalf's Spell](https://open.kattis.com/problems/gandalfsspell) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/gandalfsspell.py" + ``` + +## :green_circle: [GCD](https://open.kattis.com/problems/gcd) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/gcd.py" + ``` + +## :green_circle: [GCVWR](https://open.kattis.com/problems/gcvwr) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/gcvwr.py" + ``` + +## :green_circle: [Gene Block](https://open.kattis.com/problems/geneblock) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/geneblock.py" + ``` + +## :green_circle: [Gerrymandering](https://open.kattis.com/problems/gerrymandering) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/gerrymandering.py" + ``` + +## :green_circle: [Glasses Foggy, Mom's Spaghetti](https://open.kattis.com/problems/glassesfoggymomsspaghetti) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/glassesfoggymomsspaghetti.py" + ``` + +## :green_circle: [Goat Rope](https://open.kattis.com/problems/goatrope) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/goatrope.py" + ``` + +## :green_circle: [Goomba Stacks](https://open.kattis.com/problems/goombastacks) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/goombastacks.py" + ``` + +## :green_circle: [Grading](https://open.kattis.com/problems/grading) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/grading.py" + ``` + +## :green_circle: [Grass Seed Inc.](https://open.kattis.com/problems/grassseed) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/grassseed.py" + ``` + +## :green_circle: [Greedily Increasing Subsequence](https://open.kattis.com/problems/greedilyincreasing) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/greedilyincreasing.py" + ``` + +## :green_circle: [Greedy Polygons](https://open.kattis.com/problems/greedypolygons) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/greedypolygons.py" + ``` + +## :green_circle: [Greetings!](https://open.kattis.com/problems/greetings2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/greetings2.py" + ``` + +## :green_circle: [Guess the Number](https://open.kattis.com/problems/guess) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/guess.py" + ``` + +## :green_circle: [Watch Out For Those Hailstones!](https://open.kattis.com/problems/hailstone) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/hailstone.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/hailstone.py" + ``` + +## :green_circle: [Hailstone Sequences](https://open.kattis.com/problems/hailstone2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/hailstone2.py" + ``` + +## :green_circle: [Half a Cookie](https://open.kattis.com/problems/halfacookie) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/halfacookie.py" + ``` + +## :green_circle: [Hangman](https://open.kattis.com/problems/hangman) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/hangman.py" + ``` + +## :green_circle: [Harshad Numbers](https://open.kattis.com/problems/harshadnumbers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/harshadnumbers.py" + ``` + +## :green_circle: [Haughty Cuisine](https://open.kattis.com/problems/haughtycuisine) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/haughtycuisine.py" + ``` + +## :green_circle: [Head Guard](https://open.kattis.com/problems/headguard) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/headguard.py" + ``` + +## :green_circle: [Heart Rate](https://open.kattis.com/problems/heartrate) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/heartrate.py" + ``` + +## :green_circle: [Homework](https://open.kattis.com/problems/heimavinna) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/heimavinna.py" + ``` + +## :green_circle: [Heir's Dilemma](https://open.kattis.com/problems/heirsdilemma) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/heirsdilemma.py" + ``` + +## :green_circle: [Heliocentric](https://open.kattis.com/problems/heliocentric) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/heliocentric.py" + ``` + +## :green_circle: [Hello World!](https://open.kattis.com/problems/hello) + +??? success "Solutions in 8 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/hello.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/hello.go" + ``` + + === "Haskell" + + ```hs linenums="1" + --8<-- "src/hello.hs" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/hello.java" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/hello.js" + ``` + + === "Kotlin" + + ```kt linenums="1" + --8<-- "src/hello.kt" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/hello.py" + ``` + + === "Rust" + + ```rs linenums="1" + --8<-- "src/hello.rs" + ``` + +## :green_circle: [Help a PhD candidate out!](https://open.kattis.com/problems/helpaphd) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/helpaphd.py" + ``` + +## :green_circle: [Herman](https://open.kattis.com/problems/herman) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/herman.py" + ``` + +## :green_circle: [Hissing Microphone](https://open.kattis.com/problems/hissingmicrophone) + +??? success "Solutions in 3 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/hissingmicrophone.cpp" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/hissingmicrophone.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/hissingmicrophone.py" + ``` + +## :green_circle: [Hitting the Targets](https://open.kattis.com/problems/hittingtargets) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/hittingtargets.py" + ``` + +## :green_circle: [Hot Hike](https://open.kattis.com/problems/hothike) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/hothike.py" + ``` + +## :green_circle: [Hraðgreining](https://open.kattis.com/problems/hradgreining) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/hradgreining.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/hradgreining.py" + ``` + +## :green_circle: [The Amazing Human Cannonball](https://open.kattis.com/problems/humancannonball2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/humancannonball2.py" + ``` + +## :green_circle: [Hvert Skal Mæta?](https://open.kattis.com/problems/hvertskalmaeta) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/hvertskalmaeta.py" + ``` + +## :green_circle: [ICPC Awards](https://open.kattis.com/problems/icpcawards) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/icpcawards.py" + ``` + +## :green_circle: [Illuminati Spotti](https://open.kattis.com/problems/illuminatispotti) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/illuminatispotti.py" + ``` + +## :yellow_circle: [Inheritance](https://open.kattis.com/problems/inheritance) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/inheritance.py" + ``` + +## :green_circle: [International Dates](https://open.kattis.com/problems/internationaldates) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/internationaldates.py" + ``` + +## :green_circle: [IsItHalloween.com](https://open.kattis.com/problems/isithalloween) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/isithalloween.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/isithalloween.py" + ``` + +## :green_circle: [Jabuke](https://open.kattis.com/problems/jabuke) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jabuke.py" + ``` + +## :green_circle: [Jack-O'-Lantern Juxtaposition](https://open.kattis.com/problems/jackolanternjuxtaposition) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jackolanternjuxtaposition.py" + ``` + +## :green_circle: [Janitor Troubles](https://open.kattis.com/problems/janitortroubles) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/janitortroubles.py" + ``` + +## :green_circle: [Jewelry Box](https://open.kattis.com/problems/jewelrybox) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jewelrybox.py" + ``` + +## :green_circle: [Job Expenses](https://open.kattis.com/problems/jobexpenses) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jobexpenses.py" + ``` + +## :green_circle: [Joint Jog Jam](https://open.kattis.com/problems/jointjogjam) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jointjogjam.py" + ``` + +## :green_circle: [Judging Moose](https://open.kattis.com/problems/judgingmoose) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/judgingmoose.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/judgingmoose.py" + ``` + +## :green_circle: [Jumbo Javelin](https://open.kattis.com/problems/jumbojavelin) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/jumbojavelin.py" + ``` + +## :green_circle: [Just a Minute](https://open.kattis.com/problems/justaminute) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/justaminute.py" + ``` + +## :yellow_circle: [Running Race](https://open.kattis.com/problems/kaploeb) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/kaploeb.py" + ``` + +## :green_circle: [Karte](https://open.kattis.com/problems/karte) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/karte.py" + ``` + +## :green_circle: [Kemija](https://open.kattis.com/problems/kemija08) + +??? success "Solutions in 2 languages" + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/kemija08.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/kemija08.py" + ``` + +## :green_circle: [The Key to Cryptography](https://open.kattis.com/problems/keytocrypto) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/keytocrypto.py" + ``` + +## :green_circle: [Keywords](https://open.kattis.com/problems/keywords) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/keywords.py" + ``` + +## :green_circle: [Kitten on a Tree](https://open.kattis.com/problems/kitten) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/kitten.py" + ``` + +## :green_circle: [Kleptography](https://open.kattis.com/problems/kleptography) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/kleptography.py" + ``` + +## :green_circle: [Knight Packing](https://open.kattis.com/problems/knightpacking) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/knightpacking.py" + ``` + +## :green_circle: [Knot Knowledge](https://open.kattis.com/problems/knotknowledge) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/knotknowledge.py" + ``` + +## :green_circle: [Kornislav](https://open.kattis.com/problems/kornislav) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/kornislav.py" + ``` + +## :green_circle: [Križaljka](https://open.kattis.com/problems/krizaljka) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/krizaljka.py" + ``` + +## :green_circle: [Ladder](https://open.kattis.com/problems/ladder) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ladder.py" + ``` + +## :green_circle: [Lamps](https://open.kattis.com/problems/lamps) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/lamps.py" + ``` + +## :green_circle: [Laptop Sticker](https://open.kattis.com/problems/laptopsticker) + +??? success "Solutions in 3 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/laptopsticker.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/laptopsticker.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/laptopsticker.py" + ``` + +## :green_circle: [Last Factorial Digit](https://open.kattis.com/problems/lastfactorialdigit) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/lastfactorialdigit.py" + ``` + +## :green_circle: [Left Beehind](https://open.kattis.com/problems/leftbeehind) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/leftbeehind.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/leftbeehind.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/leftbeehind.py" + ``` + +## :green_circle: [Leggja saman](https://open.kattis.com/problems/leggjasaman) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/leggjasaman.py" + ``` + +## :green_circle: [License to Launch](https://open.kattis.com/problems/licensetolaunch) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/licensetolaunch.py" + ``` + +## :green_circle: [Line Them Up](https://open.kattis.com/problems/lineup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/lineup.py" + ``` + +## :yellow_circle: [A List Game](https://open.kattis.com/problems/listgame) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/listgame.py" + ``` + +## :green_circle: [Locust Locus](https://open.kattis.com/problems/locustlocus) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/locustlocus.py" + ``` + +## :green_circle: [Logic Functions](https://open.kattis.com/problems/logicfunctions) + +??? success "Solution in C++" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/logicfunctions.cpp" + ``` + +## :green_circle: [Lost Lineup](https://open.kattis.com/problems/lostlineup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/lostlineup.py" + ``` + +## :green_circle: [Luhn's Checksum Algorithm](https://open.kattis.com/problems/luhnchecksum) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/luhnchecksum.py" + ``` + +## :green_circle: [Magic Trick](https://open.kattis.com/problems/magictrick) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/magictrick.py" + ``` + +## :green_circle: [Making A Meowth](https://open.kattis.com/problems/makingameowth) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/makingameowth.py" + ``` + +## :green_circle: [Identifying Map Tiles](https://open.kattis.com/problems/maptiles2) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/maptiles2.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/maptiles2.py" + ``` + +## :green_circle: [Marko](https://open.kattis.com/problems/marko) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/marko.py" + ``` + +## :green_circle: [Mars Window](https://open.kattis.com/problems/marswindow) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/marswindow.py" + ``` + +## :green_circle: [Math Homework](https://open.kattis.com/problems/mathhomework) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mathhomework.py" + ``` + +## :green_circle: [Mean Words](https://open.kattis.com/problems/meanwords) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/meanwords.py" + ``` + +## :green_circle: [Imperial Measurement](https://open.kattis.com/problems/measurement) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/measurement.py" + ``` + +## :green_circle: [Metaprogramming](https://open.kattis.com/problems/metaprogramming) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/metaprogramming.py" + ``` + +## :green_circle: [Methodic Multiplication](https://open.kattis.com/problems/methodicmultiplication) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/methodicmultiplication.py" + ``` + +## :green_circle: [Metronome](https://open.kattis.com/problems/metronome) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/metronome.py" + ``` + +## :green_circle: [Mia](https://open.kattis.com/problems/mia) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mia.py" + ``` + +## :green_circle: [Missing Numbers](https://open.kattis.com/problems/missingnumbers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/missingnumbers.py" + ``` + +## :green_circle: [Mixed Fractions](https://open.kattis.com/problems/mixedfractions) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mixedfractions.py" + ``` + +## :green_circle: [Mjehuric](https://open.kattis.com/problems/mjehuric) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mjehuric.py" + ``` + +## :green_circle: [Moderate Pace](https://open.kattis.com/problems/moderatepace) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/moderatepace.py" + ``` + +## :green_circle: [Modulo](https://open.kattis.com/problems/modulo) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/modulo.py" + ``` + +## :green_circle: [Monopoly](https://open.kattis.com/problems/monopol) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/monopol.py" + ``` + +## :green_circle: [Moscow Dream](https://open.kattis.com/problems/moscowdream) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/moscowdream.py" + ``` + +## :green_circle: [Mosquito Multiplication](https://open.kattis.com/problems/mosquito) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mosquito.py" + ``` + +## :green_circle: [MrCodeFormatGrader](https://open.kattis.com/problems/mrcodeformatgrader) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mrcodeformatgrader.py" + ``` + +## :green_circle: [Mult!](https://open.kattis.com/problems/mult) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mult.py" + ``` + +## :green_circle: [Mumble Rap](https://open.kattis.com/problems/mumblerap) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mumblerap.py" + ``` + +## :green_circle: [Musical Scales](https://open.kattis.com/problems/musicalscales) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/musicalscales.py" + ``` + +## :green_circle: [Music Your Way](https://open.kattis.com/problems/musicyourway) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/musicyourway.py" + ``` + +## :green_circle: [Mylla](https://open.kattis.com/problems/mylla2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/mylla2.py" + ``` + +## :green_circle: [Nasty Hacks](https://open.kattis.com/problems/nastyhacks) + +??? success "Solutions in 2 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/nastyhacks.cpp" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/nastyhacks.py" + ``` + +## :green_circle: [No Duplicates](https://open.kattis.com/problems/nodup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/nodup.py" + ``` + +## :green_circle: [No Thanks!](https://open.kattis.com/problems/nothanks) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/nothanks.py" + ``` + +## :green_circle: [N-sum](https://open.kattis.com/problems/nsum) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/nsum.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/nsum.py" + ``` + +## :green_circle: [Number Fun](https://open.kattis.com/problems/numberfun) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/numberfun.py" + ``` + +## :green_circle: [Odd Echo](https://open.kattis.com/problems/oddecho) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/oddecho.py" + ``` + +## :green_circle: [Odd Gnome](https://open.kattis.com/problems/oddgnome) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/oddgnome.py" + ``` + +## :green_circle: [Oddities](https://open.kattis.com/problems/oddities) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/oddities.py" + ``` + +## :green_circle: [Odd Man Out](https://open.kattis.com/problems/oddmanout) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/oddmanout.py" + ``` + +## :green_circle: [Off-World Records](https://open.kattis.com/problems/offworldrecords) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/offworldrecords.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/offworldrecords.py" + ``` + +## :green_circle: [Reverse](https://open.kattis.com/problems/ofugsnuid) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ofugsnuid.py" + ``` + +## :green_circle: [Oktalni](https://open.kattis.com/problems/oktalni) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/oktalni.py" + ``` + +## :green_circle: [One Chicken Per Person!](https://open.kattis.com/problems/onechicken) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/onechicken.py" + ``` + +## :green_circle: [Ordinals](https://open.kattis.com/problems/ordinals) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ordinals.py" + ``` + +## :green_circle: [Ornaments](https://open.kattis.com/problems/ornaments) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ornaments.py" + ``` + +## :green_circle: [Östgötska](https://open.kattis.com/problems/ostgotska) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ostgotska.py" + ``` + +## :green_circle: [Overdraft](https://open.kattis.com/problems/overdraft) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/overdraft.py" + ``` + +## :green_circle: [Óvissa](https://open.kattis.com/problems/ovissa) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ovissa.py" + ``` + +## :green_circle: [The Owl and the Fox](https://open.kattis.com/problems/owlandfox) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/owlandfox.py" + ``` + +## :green_circle: [Pachyderm Peanut Packing](https://open.kattis.com/problems/pachydermpeanutpacking) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pachydermpeanutpacking.py" + ``` + +## :green_circle: [Parent Gap](https://open.kattis.com/problems/parentgap) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/parentgap.py" + ``` + +## :green_circle: [Parket](https://open.kattis.com/problems/parket) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/parket.py" + ``` + +## :green_circle: [Parking](https://open.kattis.com/problems/parking) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/parking.py" + ``` + +## :green_circle: [Parking](https://open.kattis.com/problems/parking2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/parking2.py" + ``` + +## :green_circle: [Patuljci](https://open.kattis.com/problems/patuljci) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/patuljci.py" + ``` + +## :green_circle: [Paul Eigon](https://open.kattis.com/problems/pauleigon) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/pauleigon.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/pauleigon.py" + ``` + +## :green_circle: [Peach Powder Polygon](https://open.kattis.com/problems/peachpowderpolygon) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/peachpowderpolygon.py" + ``` + +## :green_circle: [Pea Soup and Pancakes](https://open.kattis.com/problems/peasoup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/peasoup.py" + ``` + +## :green_circle: [Peragrams](https://open.kattis.com/problems/peragrams) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/peragrams.py" + ``` + +## :green_circle: [Perket](https://open.kattis.com/problems/perket) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/perket.py" + ``` + +## :green_circle: [Permuted Arithmetic Sequence](https://open.kattis.com/problems/permutedarithmeticsequence) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/permutedarithmeticsequence.py" + ``` + +## :green_circle: [Pervasive Heart Monitor](https://open.kattis.com/problems/pervasiveheartmonitor) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pervasiveheartmonitor.py" + ``` + +## :green_circle: [Pet](https://open.kattis.com/problems/pet) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pet.py" + ``` + +## :green_circle: [Piece of Cake!](https://open.kattis.com/problems/pieceofcake2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pieceofcake2.py" + ``` + +## :green_circle: [Pig Latin](https://open.kattis.com/problems/piglatin) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/piglatin.py" + ``` + +## :yellow_circle: [A Vicious Pikeman (Easy)](https://open.kattis.com/problems/pikemaneasy) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pikemaneasy.py" + ``` + +## :green_circle: [Pizza Crust](https://open.kattis.com/problems/pizza2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pizza2.py" + ``` + +## :green_circle: [Pizzubestun](https://open.kattis.com/problems/pizzubestun) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pizzubestun.py" + ``` + +## :green_circle: [Planetaris](https://open.kattis.com/problems/planetaris) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/planetaris.py" + ``` + +## :green_circle: [Planina](https://open.kattis.com/problems/planina) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/planina.py" + ``` + +## :green_circle: [Planting Trees](https://open.kattis.com/problems/plantingtrees) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/plantingtrees.py" + ``` + +## :green_circle: [Pokechat](https://open.kattis.com/problems/pokechat) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pokechat.py" + ``` + +## :green_circle: [Poker Hand](https://open.kattis.com/problems/pokerhand) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pokerhand.py" + ``` + +## :green_circle: [Polynomial Multiplication 1](https://open.kattis.com/problems/polymul1) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/polymul1.py" + ``` + +## :green_circle: [Popularity Contest](https://open.kattis.com/problems/popularitycontest) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/popularitycontest.py" + ``` + +## :green_circle: [Pot](https://open.kattis.com/problems/pot) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pot.py" + ``` + +## :green_circle: [Printing Costs](https://open.kattis.com/problems/printingcosts) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/printingcosts.py" + ``` + +## :green_circle: [Provinces and Gold](https://open.kattis.com/problems/provincesandgold) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/provincesandgold.py" + ``` + +## :green_circle: [Prsteni](https://open.kattis.com/problems/prsteni) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/prsteni.py" + ``` + +## :green_circle: [Prva](https://open.kattis.com/problems/prva) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/prva.py" + ``` + +## :green_circle: [Ptice](https://open.kattis.com/problems/ptice) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ptice.py" + ``` + +## :green_circle: [Building Pyramids](https://open.kattis.com/problems/pyramids) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/pyramids.py" + ``` + +## :green_circle: [Quality-Adjusted Life-Year](https://open.kattis.com/problems/qaly) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/qaly.py" + ``` + +## :green_circle: [Quadrant Selection](https://open.kattis.com/problems/quadrant) + +??? success "Solutions in 4 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/quadrant.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/quadrant.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/quadrant.py" + ``` + + === "Rust" + + ```rs linenums="1" + --8<-- "src/quadrant.rs" + ``` + +## :green_circle: [Quick Brown Fox](https://open.kattis.com/problems/quickbrownfox) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/quickbrownfox.py" + ``` + +## :green_circle: [Quick Estimates](https://open.kattis.com/problems/quickestimate) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/quickestimate.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/quickestimate.py" + ``` + +## :green_circle: [Quite a Problem](https://open.kattis.com/problems/quiteaproblem) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/quiteaproblem.py" + ``` + +## :green_circle: [R2](https://open.kattis.com/problems/r2) + +??? success "Solutions in 4 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/r2.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/r2.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/r2.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/r2.py" + ``` + +## :green_circle: [Racing Around the Alphabet](https://open.kattis.com/problems/racingalphabet) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/racingalphabet.py" + ``` + +## :green_circle: [Ragged Right](https://open.kattis.com/problems/raggedright) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/raggedright.py" + ``` + +## :green_circle: [Railroad](https://open.kattis.com/problems/railroad2) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/railroad2.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/railroad2.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/railroad2.py" + ``` + +## :green_circle: [A Rank Problem](https://open.kattis.com/problems/rankproblem) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/rankproblem.py" + ``` + +## :green_circle: [Rating Problems](https://open.kattis.com/problems/ratingproblems) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/ratingproblems.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/ratingproblems.py" + ``` + +## :green_circle: [A Rational Sequence 2](https://open.kattis.com/problems/rationalsequence2) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/rationalsequence2.py" + ``` + +## :green_circle: [Scaling Recipes](https://open.kattis.com/problems/recipes) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/recipes.py" + ``` + +## :green_circle: [Recount](https://open.kattis.com/problems/recount) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/recount.py" + ``` + +## :green_circle: [Rectangle Area](https://open.kattis.com/problems/rectanglearea) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/rectanglearea.py" + ``` + +## :green_circle: [Reduced ID Numbers](https://open.kattis.com/problems/reducedidnumbers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/reducedidnumbers.py" + ``` + +## :green_circle: [Relocation](https://open.kattis.com/problems/relocation) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/relocation.py" + ``` + +## :green_circle: [Restaurant Opening](https://open.kattis.com/problems/restaurantopening) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/restaurantopening.py" + ``` + +## :green_circle: [Reversed Binary Numbers](https://open.kattis.com/problems/reversebinary) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/reversebinary.py" + ``` + +## :green_circle: [Reverse Rot](https://open.kattis.com/problems/reverserot) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/reverserot.py" + ``` + +## :green_circle: [Riječi](https://open.kattis.com/problems/rijeci) + +??? success "Solutions in 3 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/rijeci.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/rijeci.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/rijeci.py" + ``` + +## :green_circle: [Roaming Romans](https://open.kattis.com/problems/romans) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/romans.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/romans.py" + ``` + +## :green_circle: [Run-Length Encoding, Run!](https://open.kattis.com/problems/runlengthencodingrun) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/runlengthencodingrun.py" + ``` + +## :green_circle: [Same Digits (Easy)](https://open.kattis.com/problems/samedigitseasy) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/samedigitseasy.py" + ``` + +## :yellow_circle: [Same Digits (Hard)](https://open.kattis.com/problems/samedigitshard) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/samedigitshard.py" + ``` + +## :green_circle: [Saving Daylight](https://open.kattis.com/problems/savingdaylight) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/savingdaylight.py" + ``` + +## :green_circle: [Saving For Retirement](https://open.kattis.com/problems/savingforretirement) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/savingforretirement.py" + ``` + +## :green_circle: [Scaling Recipe](https://open.kattis.com/problems/scalingrecipe) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/scalingrecipe.py" + ``` + +## :green_circle: [School Spirit](https://open.kattis.com/problems/schoolspirit) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/schoolspirit.py" + ``` + +## :green_circle: [Secret Message](https://open.kattis.com/problems/secretmessage) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/secretmessage.py" + ``` + +## :green_circle: [Secure Doors](https://open.kattis.com/problems/securedoors) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/securedoors.py" + ``` + +## :green_circle: [Server](https://open.kattis.com/problems/server) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/server.py" + ``` + +## :green_circle: [Seven Wonders](https://open.kattis.com/problems/sevenwonders) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sevenwonders.py" + ``` + +## :green_circle: [Shattered Cake](https://open.kattis.com/problems/shatteredcake) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/shatteredcake.py" + ``` + +## :green_circle: [Shopaholic](https://open.kattis.com/problems/shopaholic) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/shopaholic.py" + ``` + +## :green_circle: [Shopping List (Easy)](https://open.kattis.com/problems/shoppinglisteasy) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/shoppinglisteasy.py" + ``` + +## :green_circle: [Sibice](https://open.kattis.com/problems/sibice) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sibice.py" + ``` + +## :green_circle: [Sideways Sorting](https://open.kattis.com/problems/sidewayssorting) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sidewayssorting.py" + ``` + +## :green_circle: [Digit Product](https://open.kattis.com/problems/sifferprodukt) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sifferprodukt.py" + ``` + +## :yellow_circle: [Simon Says](https://open.kattis.com/problems/simon) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/simon.py" + ``` + +## :green_circle: [Simone](https://open.kattis.com/problems/simone) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/simone.py" + ``` + +## :green_circle: [Simon Says](https://open.kattis.com/problems/simonsays) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/simonsays.py" + ``` + +## :green_circle: [Simple Addition](https://open.kattis.com/problems/simpleaddition) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/simpleaddition.py" + ``` + +## :green_circle: [Simple Factoring](https://open.kattis.com/problems/simplefactoring) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/simplefactoring.py" + ``` + +## :green_circle: [Sith](https://open.kattis.com/problems/sith) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sith.py" + ``` + +## :green_circle: [Sjecista](https://open.kattis.com/problems/sjecista) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sjecista.py" + ``` + +## :green_circle: [Skener](https://open.kattis.com/problems/skener) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/skener.py" + ``` + +## :green_circle: [Skocimis](https://open.kattis.com/problems/skocimis) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/skocimis.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/skocimis.py" + ``` + +## :green_circle: [Turn It Up!](https://open.kattis.com/problems/skruop) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/skruop.py" + ``` + +## :green_circle: [Slatkisi](https://open.kattis.com/problems/slatkisi) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/slatkisi.py" + ``` + +## :green_circle: [SMIL](https://open.kattis.com/problems/smil) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/smil.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/smil.py" + ``` + +## :green_circle: [Soda Slurper](https://open.kattis.com/problems/sodaslurper) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/sodaslurper.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/sodaslurper.py" + ``` + +## :green_circle: [Sok](https://open.kattis.com/problems/sok) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sok.py" + ``` + +## :green_circle: [Some Sum](https://open.kattis.com/problems/somesum) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/somesum.py" + ``` + +## :green_circle: [Sort](https://open.kattis.com/problems/sort) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sort.py" + ``` + +## :green_circle: [Sort of Sorting](https://open.kattis.com/problems/sortofsorting) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sortofsorting.py" + ``` + +## :green_circle: [Sort Two Numbers](https://open.kattis.com/problems/sorttwonumbers) + +??? success "Solutions in 3 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/sorttwonumbers.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/sorttwonumbers.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/sorttwonumbers.py" + ``` + +## :green_circle: [Sóttkví](https://open.kattis.com/problems/sottkvi) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/sottkvi.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/sottkvi.py" + ``` + +## :green_circle: [Soylent](https://open.kattis.com/problems/soylent) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/soylent.py" + ``` + +## :green_circle: [Spavanac](https://open.kattis.com/problems/spavanac) + +??? success "Solutions in 3 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/spavanac.cpp" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/spavanac.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/spavanac.py" + ``` + +## :green_circle: [Speeding](https://open.kattis.com/problems/speeding) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/speeding.py" + ``` + +## :green_circle: [Speed Limit](https://open.kattis.com/problems/speedlimit) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/speedlimit.py" + ``` + +## :green_circle: [Spelling Bee](https://open.kattis.com/problems/spellingbee) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/spellingbee.py" + ``` + +## :green_circle: [Spritt](https://open.kattis.com/problems/spritt) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/spritt.py" + ``` + +## :green_circle: [Square Peg](https://open.kattis.com/problems/squarepeg) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/squarepeg.py" + ``` + +## :green_circle: [Stafur](https://open.kattis.com/problems/stafur) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/stafur.py" + ``` + +## :green_circle: [Statistics](https://open.kattis.com/problems/statistics) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/statistics.py" + ``` + +## :green_circle: [Sticky Keys](https://open.kattis.com/problems/stickykeys) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/stickykeys.py" + ``` + +## :green_circle: [Messy lists](https://open.kattis.com/problems/stokigalistor) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/stokigalistor.py" + ``` + +## :green_circle: [Stopwatch](https://open.kattis.com/problems/stopwatch) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/stopwatch.py" + ``` + +## :green_circle: [Streets Ahead](https://open.kattis.com/problems/streetsahead) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/streetsahead.py" + ``` + +## :green_circle: [Successful Zoom](https://open.kattis.com/problems/successfulzoom) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/successfulzoom.py" + ``` + +## :green_circle: [Sum Kind of Problem](https://open.kattis.com/problems/sumkindofproblem) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sumkindofproblem.py" + ``` + +## :green_circle: [Sum of the Others](https://open.kattis.com/problems/sumoftheothers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sumoftheothers.py" + ``` + +## :green_circle: [Sum Squared Digits Function](https://open.kattis.com/problems/sumsquareddigits) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sumsquareddigits.py" + ``` + +## :green_circle: [Sun and Moon](https://open.kattis.com/problems/sunandmoon) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/sunandmoon.py" + ``` + +## :green_circle: [Symmetric Order](https://open.kattis.com/problems/symmetricorder) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/symmetricorder.py" + ``` + +## :green_circle: [Synchronizing Lists](https://open.kattis.com/problems/synchronizinglists) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/synchronizinglists.py" + ``` + +## :green_circle: [T9 Spelling](https://open.kattis.com/problems/t9spelling) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/t9spelling.py" + ``` + +## :green_circle: [Tai's formula](https://open.kattis.com/problems/taisformula) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/taisformula.py" + ``` + +## :green_circle: [Tajna](https://open.kattis.com/problems/tajna) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tajna.py" + ``` + +## :green_circle: [Tarifa](https://open.kattis.com/problems/tarifa) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tarifa.py" + ``` + +## :yellow_circle: [Temperature Confusion](https://open.kattis.com/problems/temperatureconfusion) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/temperatureconfusion.py" + ``` + +## :green_circle: [Test Drive](https://open.kattis.com/problems/testdrive) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/testdrive.py" + ``` + +## :green_circle: [Tetration](https://open.kattis.com/problems/tetration) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tetration.py" + ``` + +## :yellow_circle: [Thanos](https://open.kattis.com/problems/thanos) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/thanos.py" + ``` + +## :green_circle: [The Grand Adventure](https://open.kattis.com/problems/thegrandadventure) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/thegrandadventure.py" + ``` + +## :green_circle: [The Last Problem](https://open.kattis.com/problems/thelastproblem) + +??? success "Solutions in 2 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/thelastproblem.go" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/thelastproblem.py" + ``` + +## :green_circle: [This Ain't Your Grandpa's Checkerboard](https://open.kattis.com/problems/thisaintyourgrandpascheckerboard) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/thisaintyourgrandpascheckerboard.py" + ``` + +## :green_circle: [Stuck In A Time Loop](https://open.kattis.com/problems/timeloop) + +??? success "Solutions in 2 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/timeloop.cpp" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/timeloop.py" + ``` + +## :green_circle: [Title Cost](https://open.kattis.com/problems/titlecost) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/titlecost.py" + ``` + +## :green_circle: [Töflur](https://open.kattis.com/problems/toflur) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/toflur.py" + ``` + +## :green_circle: [Toilet Seat](https://open.kattis.com/problems/toilet) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/toilet.py" + ``` + +## :green_circle: [ToLower](https://open.kattis.com/problems/tolower) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tolower.py" + ``` + +## :green_circle: [Tower Construction](https://open.kattis.com/problems/tornbygge) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tornbygge.py" + ``` + +## :green_circle: [Touchscreen Keyboard](https://open.kattis.com/problems/touchscreenkeyboard) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/touchscreenkeyboard.py" + ``` + +## :green_circle: [Transit Woes](https://open.kattis.com/problems/transitwoes) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/transitwoes.py" + ``` + +## :green_circle: [Tri](https://open.kattis.com/problems/tri) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tri.py" + ``` + +## :green_circle: [Triangle Area](https://open.kattis.com/problems/triarea) + +??? success "Solutions in 4 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/triarea.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/triarea.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/triarea.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/triarea.py" + ``` + +## :green_circle: [Trik](https://open.kattis.com/problems/trik) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/trik.py" + ``` + +## :green_circle: [Triple Texting](https://open.kattis.com/problems/tripletexting) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/tripletexting.py" + ``` + +## :green_circle: [Take Two Stones](https://open.kattis.com/problems/twostones) + +??? success "Solutions in 6 languages" + + === "Go" + + ```go linenums="1" + --8<-- "src/twostones.go" + ``` + + === "Haskell" + + ```hs linenums="1" + --8<-- "src/twostones.hs" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/twostones.java" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/twostones.js" + ``` + + === "Kotlin" + + ```kt linenums="1" + --8<-- "src/twostones.kt" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/twostones.py" + ``` + +## :green_circle: [Two-sum](https://open.kattis.com/problems/twosum) + +??? success "Solutions in 4 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/twosum.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/twosum.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/twosum.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/twosum.py" + ``` + +## :green_circle: [Úllen dúllen doff](https://open.kattis.com/problems/ullendullendoff) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ullendullendoff.py" + ``` + +## :green_circle: [Ultimate Binary Watch](https://open.kattis.com/problems/ultimatebinarywatch) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/ultimatebinarywatch.py" + ``` + +## :green_circle: [Undead or Alive](https://open.kattis.com/problems/undeadoralive) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/undeadoralive.py" + ``` + +## :green_circle: [Unlock Pattern](https://open.kattis.com/problems/unlockpattern) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/unlockpattern.py" + ``` + +## :green_circle: [Arrangement](https://open.kattis.com/problems/upprodun) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/upprodun.py" + ``` + +## :green_circle: [UTF-8](https://open.kattis.com/problems/utf8) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/utf8.py" + ``` + +## :green_circle: [Vaccine Efficacy](https://open.kattis.com/problems/vaccineefficacy) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vaccineefficacy.py" + ``` + +## :green_circle: [Right-of-Way](https://open.kattis.com/problems/vajningsplikt) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vajningsplikt.py" + ``` + +## :green_circle: [Variable Arithmetic](https://open.kattis.com/problems/variablearithmetic) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/variablearithmetic.py" + ``` + +## :green_circle: [Veci](https://open.kattis.com/problems/veci) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/veci.py" + ``` + +## :yellow_circle: [Vector Functions](https://open.kattis.com/problems/vectorfunctions) + +??? success "Solution in C++" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/vectorfunctions.cpp" + ``` + +## :green_circle: [Veður - Lokaðar heiðar](https://open.kattis.com/problems/vedurheidar) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vedurheidar.py" + ``` + +## :green_circle: [Veður - Vindhraði](https://open.kattis.com/problems/vedurvindhradi) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vedurvindhradi.py" + ``` + +## :green_circle: [Vefþjónatjón](https://open.kattis.com/problems/vefthjonatjon) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vefthjonatjon.py" + ``` + +## :green_circle: [Velkomin!](https://open.kattis.com/problems/velkomin) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/velkomin.py" + ``` + +## :green_circle: [Who wins?](https://open.kattis.com/problems/vemvinner) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vemvinner.py" + ``` + +## :green_circle: [Video Speedup](https://open.kattis.com/problems/videospeedup) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/videospeedup.py" + ``` + +## :green_circle: [Viðsnúningur](https://open.kattis.com/problems/vidsnuningur) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vidsnuningur.py" + ``` + +## :green_circle: [Popular Vote](https://open.kattis.com/problems/vote) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/vote.py" + ``` + +## :green_circle: [Warehouse](https://open.kattis.com/problems/warehouse) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/warehouse.py" + ``` + +## :green_circle: [Weak Vertices](https://open.kattis.com/problems/weakvertices) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/weakvertices.py" + ``` + +## :yellow_circle: [WERTYU](https://open.kattis.com/problems/wertyu) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/wertyu.py" + ``` + +## :green_circle: [What does the fox say?](https://open.kattis.com/problems/whatdoesthefoxsay) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/whatdoesthefoxsay.py" + ``` + +## :green_circle: [Which is Greater?](https://open.kattis.com/problems/whichisgreater) + +??? success "Solutions in 5 languages" + + === "C++" + + ```cpp linenums="1" + --8<-- "src/whichisgreater.cpp" + ``` + + === "Go" + + ```go linenums="1" + --8<-- "src/whichisgreater.go" + ``` + + === "Java" + + ```java linenums="1" + --8<-- "src/whichisgreater.java" + ``` + + === "JavaScript" + + ```js linenums="1" + --8<-- "src/whichisgreater.js" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/whichisgreater.py" + ``` + +## :yellow_circle: [Wizard of Odds](https://open.kattis.com/problems/wizardofodds) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/wizardofodds.py" + ``` + +## :yellow_circle: [Words for Numbers](https://open.kattis.com/problems/wordsfornumbers) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/wordsfornumbers.py" + ``` + +## :green_circle: [Yin and Yang Stones](https://open.kattis.com/problems/yinyangstones) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/yinyangstones.py" + ``` + +## :green_circle: [Yoda](https://open.kattis.com/problems/yoda) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/yoda.py" + ``` + +## :green_circle: [Zamka](https://open.kattis.com/problems/zamka) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/zamka.py" + ``` + +## :green_circle: [Stand on Zanzibar](https://open.kattis.com/problems/zanzibar) + +??? success "Solutions in 2 languages" + + === "Java" + + ```java linenums="1" + --8<-- "src/zanzibar.java" + ``` + + === "Python" + + ```py linenums="1" + --8<-- "src/zanzibar.py" + ``` + +## :green_circle: [Un-bear-able Zoo](https://open.kattis.com/problems/zoo) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/zoo.py" + ``` + +## :green_circle: [Zoom](https://open.kattis.com/problems/zoom) + +??? success "Solution in Python" + + === "Python" + + ```py linenums="1" + --8<-- "src/zoom.py" + ``` diff --git a/docs/summary-by-initial.png b/docs/summary-by-initial.png index 6116225..610b388 100644 Binary files a/docs/summary-by-initial.png and b/docs/summary-by-initial.png differ diff --git a/mkdocs.yml b/mkdocs.yml index 050c0da..c96d381 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,7 @@ site_name: kattis nav: - Home: index.md - - Easy: easy.md - - Medium: medium.md - - Hard: hard.md + - Solutions: solutions.md theme: name: material favicon: https://open.kattis.com/images/site-logo @@ -48,7 +46,9 @@ markdown_extensions: - pymdownx.snippets - pymdownx.superfences - pymdownx.details - - pymdownx.emoji + - pymdownx.emoji: + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg - pymdownx.tabbed: alternate_style: true - pymdownx.caret diff --git a/src/hard/10kindsofpeople.py b/src/10kindsofpeople.py similarity index 100% rename from src/hard/10kindsofpeople.py rename to src/10kindsofpeople.py diff --git a/src/medium/1dfroggereasy.cpp b/src/1dfroggereasy.cpp similarity index 100% rename from src/medium/1dfroggereasy.cpp rename to src/1dfroggereasy.cpp diff --git a/src/medium/1dfroggereasy.py b/src/1dfroggereasy.py similarity index 100% rename from src/medium/1dfroggereasy.py rename to src/1dfroggereasy.py diff --git a/src/easy/3dprinter.go b/src/3dprinter.go similarity index 100% rename from src/easy/3dprinter.go rename to src/3dprinter.go diff --git a/src/easy/3dprinter.java b/src/3dprinter.java similarity index 100% rename from src/easy/3dprinter.java rename to src/3dprinter.java diff --git a/src/easy/3dprinter.py b/src/3dprinter.py similarity index 100% rename from src/easy/3dprinter.py rename to src/3dprinter.py diff --git a/src/medium/4thought.py b/src/4thought.py similarity index 100% rename from src/medium/4thought.py rename to src/4thought.py diff --git a/src/easy/99problems.py b/src/99problems.py similarity index 100% rename from src/easy/99problems.py rename to src/99problems.py diff --git a/src/easy/aaah.go b/src/aaah.go similarity index 100% rename from src/easy/aaah.go rename to src/aaah.go diff --git a/src/easy/aaah.py b/src/aaah.py similarity index 100% rename from src/easy/aaah.py rename to src/aaah.py diff --git a/src/easy/abc.py b/src/abc.py similarity index 100% rename from src/easy/abc.py rename to src/abc.py diff --git a/src/easy/aboveaverage.py b/src/aboveaverage.py similarity index 100% rename from src/easy/aboveaverage.py rename to src/aboveaverage.py diff --git a/src/easy/acm.py b/src/acm.py similarity index 100% rename from src/easy/acm.py rename to src/acm.py diff --git a/src/easy/addingtrouble.py b/src/addingtrouble.py similarity index 100% rename from src/easy/addingtrouble.py rename to src/addingtrouble.py diff --git a/src/medium/addingwords.py b/src/addingwords.py similarity index 100% rename from src/medium/addingwords.py rename to src/addingwords.py diff --git a/src/easy/addtwonumbers.go b/src/addtwonumbers.go similarity index 100% rename from src/easy/addtwonumbers.go rename to src/addtwonumbers.go diff --git a/src/easy/addtwonumbers.java b/src/addtwonumbers.java similarity index 100% rename from src/easy/addtwonumbers.java rename to src/addtwonumbers.java diff --git a/src/easy/addtwonumbers.js b/src/addtwonumbers.js similarity index 100% rename from src/easy/addtwonumbers.js rename to src/addtwonumbers.js diff --git a/src/easy/addtwonumbers.py b/src/addtwonumbers.py similarity index 100% rename from src/easy/addtwonumbers.py rename to src/addtwonumbers.py diff --git a/src/easy/akcija.py b/src/akcija.py similarity index 100% rename from src/easy/akcija.py rename to src/akcija.py diff --git a/src/medium/alexandbarb.py b/src/alexandbarb.py similarity index 100% rename from src/medium/alexandbarb.py rename to src/alexandbarb.py diff --git a/src/easy/alphabetspam.py b/src/alphabetspam.py similarity index 100% rename from src/easy/alphabetspam.py rename to src/alphabetspam.py diff --git a/src/easy/ameriskur.py b/src/ameriskur.py similarity index 100% rename from src/easy/ameriskur.py rename to src/ameriskur.py diff --git a/src/easy/amsterdamdistance.py b/src/amsterdamdistance.py similarity index 100% rename from src/easy/amsterdamdistance.py rename to src/amsterdamdistance.py diff --git a/src/easy/anewalphabet.go b/src/anewalphabet.go similarity index 100% rename from src/easy/anewalphabet.go rename to src/anewalphabet.go diff --git a/src/easy/anewalphabet.py b/src/anewalphabet.py similarity index 100% rename from src/easy/anewalphabet.py rename to src/anewalphabet.py diff --git a/src/easy/anotherbrick.py b/src/anotherbrick.py similarity index 100% rename from src/easy/anotherbrick.py rename to src/anotherbrick.py diff --git a/src/medium/anothercandies.py b/src/anothercandies.py similarity index 100% rename from src/medium/anothercandies.py rename to src/anothercandies.py diff --git a/src/easy/apaxiaaans.py b/src/apaxiaaans.py similarity index 100% rename from src/easy/apaxiaaans.py rename to src/apaxiaaans.py diff --git a/src/easy/apaxianparent.py b/src/apaxianparent.py similarity index 100% rename from src/easy/apaxianparent.py rename to src/apaxianparent.py diff --git a/src/easy/areal.go b/src/areal.go similarity index 100% rename from src/easy/areal.go rename to src/areal.go diff --git a/src/easy/areal.js b/src/areal.js similarity index 100% rename from src/easy/areal.js rename to src/areal.js diff --git a/src/easy/areal.py b/src/areal.py similarity index 100% rename from src/easy/areal.py rename to src/areal.py diff --git a/src/easy/areyoulistening.py b/src/areyoulistening.py similarity index 100% rename from src/easy/areyoulistening.py rename to src/areyoulistening.py diff --git a/src/medium/arithmetic.py b/src/arithmetic.py similarity index 100% rename from src/medium/arithmetic.py rename to src/arithmetic.py diff --git a/src/easy/arithmeticfunctions.cpp b/src/arithmeticfunctions.cpp similarity index 100% rename from src/easy/arithmeticfunctions.cpp rename to src/arithmeticfunctions.cpp diff --git a/src/easy/armystrengtheasy.py b/src/armystrengtheasy.py similarity index 100% rename from src/easy/armystrengtheasy.py rename to src/armystrengtheasy.py diff --git a/src/easy/armystrengthhard.py b/src/armystrengthhard.py similarity index 100% rename from src/easy/armystrengthhard.py rename to src/armystrengthhard.py diff --git a/src/easy/astrologicalsign.py b/src/astrologicalsign.py similarity index 100% rename from src/easy/astrologicalsign.py rename to src/astrologicalsign.py diff --git a/src/easy/autori.py b/src/autori.py similarity index 100% rename from src/easy/autori.py rename to src/autori.py diff --git a/src/easy/averagecharacter.py b/src/averagecharacter.py similarity index 100% rename from src/easy/averagecharacter.py rename to src/averagecharacter.py diff --git a/src/easy/avion.py b/src/avion.py similarity index 100% rename from src/easy/avion.py rename to src/avion.py diff --git a/src/easy/babelfish.py b/src/babelfish.py similarity index 100% rename from src/easy/babelfish.py rename to src/babelfish.py diff --git a/src/easy/babybites.py b/src/babybites.py similarity index 100% rename from src/easy/babybites.py rename to src/babybites.py diff --git a/src/easy/babypanda.py b/src/babypanda.py similarity index 100% rename from src/easy/babypanda.py rename to src/babypanda.py diff --git a/src/easy/backspace.py b/src/backspace.py similarity index 100% rename from src/easy/backspace.py rename to src/backspace.py diff --git a/src/easy/baconeggsandspam.py b/src/baconeggsandspam.py similarity index 100% rename from src/easy/baconeggsandspam.py rename to src/baconeggsandspam.py diff --git a/src/easy/bannord.py b/src/bannord.py similarity index 100% rename from src/easy/bannord.py rename to src/bannord.py diff --git a/src/easy/basketballoneonone.java b/src/basketballoneonone.java similarity index 100% rename from src/easy/basketballoneonone.java rename to src/basketballoneonone.java diff --git a/src/easy/basketballoneonone.py b/src/basketballoneonone.py similarity index 100% rename from src/easy/basketballoneonone.py rename to src/basketballoneonone.py diff --git a/src/easy/batterup.py b/src/batterup.py similarity index 100% rename from src/easy/batterup.py rename to src/batterup.py diff --git a/src/easy/beatspread.py b/src/beatspread.py similarity index 100% rename from src/easy/beatspread.py rename to src/beatspread.py diff --git a/src/easy/beavergnaw.py b/src/beavergnaw.py similarity index 100% rename from src/easy/beavergnaw.py rename to src/beavergnaw.py diff --git a/src/easy/beekeeper.py b/src/beekeeper.py similarity index 100% rename from src/easy/beekeeper.py rename to src/beekeeper.py diff --git a/src/easy/bela.py b/src/bela.py similarity index 100% rename from src/easy/bela.py rename to src/bela.py diff --git a/src/easy/betting.go b/src/betting.go similarity index 100% rename from src/easy/betting.go rename to src/betting.go diff --git a/src/easy/betting.py b/src/betting.py similarity index 100% rename from src/easy/betting.py rename to src/betting.py diff --git a/src/easy/bijele.py b/src/bijele.py similarity index 100% rename from src/easy/bijele.py rename to src/bijele.py diff --git a/src/easy/blackfriday.py b/src/blackfriday.py similarity index 100% rename from src/easy/blackfriday.py rename to src/blackfriday.py diff --git a/src/easy/blueberrywaffle.py b/src/blueberrywaffle.py similarity index 100% rename from src/easy/blueberrywaffle.py rename to src/blueberrywaffle.py diff --git a/src/easy/bluetooth.py b/src/bluetooth.py similarity index 100% rename from src/easy/bluetooth.py rename to src/bluetooth.py diff --git a/src/easy/boatparts.py b/src/boatparts.py similarity index 100% rename from src/easy/boatparts.py rename to src/boatparts.py diff --git a/src/easy/bookingaroom.py b/src/bookingaroom.py similarity index 100% rename from src/easy/bookingaroom.py rename to src/bookingaroom.py diff --git a/src/easy/bossbattle.py b/src/bossbattle.py similarity index 100% rename from src/easy/bossbattle.py rename to src/bossbattle.py diff --git a/src/easy/boundingrobots.py b/src/boundingrobots.py similarity index 100% rename from src/easy/boundingrobots.py rename to src/boundingrobots.py diff --git a/src/easy/bracketmatching.py b/src/bracketmatching.py similarity index 100% rename from src/easy/bracketmatching.py rename to src/bracketmatching.py diff --git a/src/easy/breakingbranches.go b/src/breakingbranches.go similarity index 100% rename from src/easy/breakingbranches.go rename to src/breakingbranches.go diff --git a/src/easy/breakingbranches.hs b/src/breakingbranches.hs similarity index 100% rename from src/easy/breakingbranches.hs rename to src/breakingbranches.hs diff --git a/src/easy/breakingbranches.java b/src/breakingbranches.java similarity index 100% rename from src/easy/breakingbranches.java rename to src/breakingbranches.java diff --git a/src/easy/breakingbranches.js b/src/breakingbranches.js similarity index 100% rename from src/easy/breakingbranches.js rename to src/breakingbranches.js diff --git a/src/easy/breakingbranches.py b/src/breakingbranches.py similarity index 100% rename from src/easy/breakingbranches.py rename to src/breakingbranches.py diff --git a/src/easy/brokencalculator.py b/src/brokencalculator.py similarity index 100% rename from src/easy/brokencalculator.py rename to src/brokencalculator.py diff --git a/src/easy/brokenswords.py b/src/brokenswords.py similarity index 100% rename from src/easy/brokenswords.py rename to src/brokenswords.py diff --git a/src/easy/buka.py b/src/buka.py similarity index 100% rename from src/easy/buka.py rename to src/buka.py diff --git a/src/easy/bus.py b/src/bus.py similarity index 100% rename from src/easy/bus.py rename to src/bus.py diff --git a/src/easy/busnumbers.py b/src/busnumbers.py similarity index 100% rename from src/easy/busnumbers.py rename to src/busnumbers.py diff --git a/src/easy/calories.py b/src/calories.py similarity index 100% rename from src/easy/calories.py rename to src/calories.py diff --git a/src/easy/canadianseh.go b/src/canadianseh.go similarity index 100% rename from src/easy/canadianseh.go rename to src/canadianseh.go diff --git a/src/easy/canadianseh.java b/src/canadianseh.java similarity index 100% rename from src/easy/canadianseh.java rename to src/canadianseh.java diff --git a/src/easy/canadianseh.py b/src/canadianseh.py similarity index 100% rename from src/easy/canadianseh.py rename to src/canadianseh.py diff --git a/src/easy/carefulascent.py b/src/carefulascent.py similarity index 100% rename from src/easy/carefulascent.py rename to src/carefulascent.py diff --git a/src/easy/carrots.py b/src/carrots.py similarity index 100% rename from src/easy/carrots.py rename to src/carrots.py diff --git a/src/medium/catalan.py b/src/catalan.py similarity index 100% rename from src/medium/catalan.py rename to src/catalan.py diff --git a/src/medium/cd.py b/src/cd.py similarity index 100% rename from src/medium/cd.py rename to src/cd.py diff --git a/src/easy/cetiri.go b/src/cetiri.go similarity index 100% rename from src/easy/cetiri.go rename to src/cetiri.go diff --git a/src/easy/cetiri.py b/src/cetiri.py similarity index 100% rename from src/easy/cetiri.py rename to src/cetiri.py diff --git a/src/easy/cetvrta.py b/src/cetvrta.py similarity index 100% rename from src/easy/cetvrta.py rename to src/cetvrta.py diff --git a/src/easy/chanukah.py b/src/chanukah.py similarity index 100% rename from src/easy/chanukah.py rename to src/chanukah.py diff --git a/src/easy/character.py b/src/character.py similarity index 100% rename from src/easy/character.py rename to src/character.py diff --git a/src/easy/chocolatedivision.py b/src/chocolatedivision.py similarity index 100% rename from src/easy/chocolatedivision.py rename to src/chocolatedivision.py diff --git a/src/easy/chopin.py b/src/chopin.py similarity index 100% rename from src/easy/chopin.py rename to src/chopin.py diff --git a/src/easy/cinema.py b/src/cinema.py similarity index 100% rename from src/easy/cinema.py rename to src/cinema.py diff --git a/src/easy/cinema2.py b/src/cinema2.py similarity index 100% rename from src/easy/cinema2.py rename to src/cinema2.py diff --git a/src/easy/classfieldtrip.py b/src/classfieldtrip.py similarity index 100% rename from src/easy/classfieldtrip.py rename to src/classfieldtrip.py diff --git a/src/easy/cocktail.py b/src/cocktail.py similarity index 100% rename from src/easy/cocktail.py rename to src/cocktail.py diff --git a/src/easy/codecleanups.py b/src/codecleanups.py similarity index 100% rename from src/easy/codecleanups.py rename to src/codecleanups.py diff --git a/src/easy/codetosavelives.py b/src/codetosavelives.py similarity index 100% rename from src/easy/codetosavelives.py rename to src/codetosavelives.py diff --git a/src/easy/coffeecupcombo.py b/src/coffeecupcombo.py similarity index 100% rename from src/easy/coffeecupcombo.py rename to src/coffeecupcombo.py diff --git a/src/easy/cold.py b/src/cold.py similarity index 100% rename from src/easy/cold.py rename to src/cold.py diff --git a/src/easy/competitivearcadebasketball.py b/src/competitivearcadebasketball.py similarity index 100% rename from src/easy/competitivearcadebasketball.py rename to src/competitivearcadebasketball.py diff --git a/src/easy/completingthesquare.py b/src/completingthesquare.py similarity index 100% rename from src/easy/completingthesquare.py rename to src/completingthesquare.py diff --git a/src/easy/compoundwords.py b/src/compoundwords.py similarity index 100% rename from src/easy/compoundwords.py rename to src/compoundwords.py diff --git a/src/easy/conformity.py b/src/conformity.py similarity index 100% rename from src/easy/conformity.py rename to src/conformity.py diff --git a/src/easy/contingencyplanning.py b/src/contingencyplanning.py similarity index 100% rename from src/easy/contingencyplanning.py rename to src/contingencyplanning.py diff --git a/src/easy/conundrum.py b/src/conundrum.py similarity index 100% rename from src/easy/conundrum.py rename to src/conundrum.py diff --git a/src/easy/convexpolygonarea.py b/src/convexpolygonarea.py similarity index 100% rename from src/easy/convexpolygonarea.py rename to src/convexpolygonarea.py diff --git a/src/easy/cookingwater.py b/src/cookingwater.py similarity index 100% rename from src/easy/cookingwater.py rename to src/cookingwater.py diff --git a/src/easy/costumecontest.py b/src/costumecontest.py similarity index 100% rename from src/easy/costumecontest.py rename to src/costumecontest.py diff --git a/src/easy/countdoubles.py b/src/countdoubles.py similarity index 100% rename from src/easy/countdoubles.py rename to src/countdoubles.py diff --git a/src/easy/countingclauses.py b/src/countingclauses.py similarity index 100% rename from src/easy/countingclauses.py rename to src/countingclauses.py diff --git a/src/easy/countthevowels.py b/src/countthevowels.py similarity index 100% rename from src/easy/countthevowels.py rename to src/countthevowels.py diff --git a/src/easy/coursescheduling.py b/src/coursescheduling.py similarity index 100% rename from src/easy/coursescheduling.py rename to src/coursescheduling.py diff --git a/src/easy/cprnummer.py b/src/cprnummer.py similarity index 100% rename from src/easy/cprnummer.py rename to src/cprnummer.py diff --git a/src/easy/crne.go b/src/crne.go similarity index 100% rename from src/easy/crne.go rename to src/crne.go diff --git a/src/easy/crne.py b/src/crne.py similarity index 100% rename from src/easy/crne.py rename to src/crne.py diff --git a/src/easy/cudoviste.py b/src/cudoviste.py similarity index 100% rename from src/easy/cudoviste.py rename to src/cudoviste.py diff --git a/src/easy/cups.py b/src/cups.py similarity index 100% rename from src/easy/cups.py rename to src/cups.py diff --git a/src/easy/cutinline.py b/src/cutinline.py similarity index 100% rename from src/easy/cutinline.py rename to src/cutinline.py diff --git a/src/easy/cutthenegativity.py b/src/cutthenegativity.py similarity index 100% rename from src/easy/cutthenegativity.py rename to src/cutthenegativity.py diff --git a/src/easy/cyaniderivers.py b/src/cyaniderivers.py similarity index 100% rename from src/easy/cyaniderivers.py rename to src/cyaniderivers.py diff --git a/src/easy/cypherdecypher.py b/src/cypherdecypher.py similarity index 100% rename from src/easy/cypherdecypher.py rename to src/cypherdecypher.py diff --git a/src/easy/damagedequation.py b/src/damagedequation.py similarity index 100% rename from src/easy/damagedequation.py rename to src/damagedequation.py diff --git a/src/easy/datum.py b/src/datum.py similarity index 100% rename from src/easy/datum.py rename to src/datum.py diff --git a/src/easy/deathknight.py b/src/deathknight.py similarity index 100% rename from src/easy/deathknight.py rename to src/deathknight.py diff --git a/src/easy/delimitersoup.py b/src/delimitersoup.py similarity index 100% rename from src/easy/delimitersoup.py rename to src/delimitersoup.py diff --git a/src/easy/detaileddifferences.py b/src/detaileddifferences.py similarity index 100% rename from src/easy/detaileddifferences.py rename to src/detaileddifferences.py diff --git a/src/easy/dicecup.py b/src/dicecup.py similarity index 100% rename from src/easy/dicecup.py rename to src/dicecup.py diff --git a/src/easy/dicegame.py b/src/dicegame.py similarity index 100% rename from src/easy/dicegame.py rename to src/dicegame.py diff --git a/src/medium/different.py b/src/different.py similarity index 100% rename from src/medium/different.py rename to src/different.py diff --git a/src/easy/differentdistances.py b/src/differentdistances.py similarity index 100% rename from src/easy/differentdistances.py rename to src/differentdistances.py diff --git a/src/easy/digitswap.go b/src/digitswap.go similarity index 100% rename from src/easy/digitswap.go rename to src/digitswap.go diff --git a/src/easy/digitswap.java b/src/digitswap.java similarity index 100% rename from src/easy/digitswap.java rename to src/digitswap.java diff --git a/src/easy/digitswap.py b/src/digitswap.py similarity index 100% rename from src/easy/digitswap.py rename to src/digitswap.py diff --git a/src/easy/discdistrict.py b/src/discdistrict.py similarity index 100% rename from src/easy/discdistrict.py rename to src/discdistrict.py diff --git a/src/easy/divvyingup.py b/src/divvyingup.py similarity index 100% rename from src/easy/divvyingup.py rename to src/divvyingup.py diff --git a/src/easy/dontfalldownstairs.py b/src/dontfalldownstairs.py similarity index 100% rename from src/easy/dontfalldownstairs.py rename to src/dontfalldownstairs.py diff --git a/src/easy/doublepassword.java b/src/doublepassword.java similarity index 100% rename from src/easy/doublepassword.java rename to src/doublepassword.java diff --git a/src/easy/doublepassword.py b/src/doublepassword.py similarity index 100% rename from src/easy/doublepassword.py rename to src/doublepassword.py diff --git a/src/easy/drinkingsong.py b/src/drinkingsong.py similarity index 100% rename from src/easy/drinkingsong.py rename to src/drinkingsong.py diff --git a/src/easy/driversdilemma.py b/src/driversdilemma.py similarity index 100% rename from src/easy/driversdilemma.py rename to src/driversdilemma.py diff --git a/src/easy/drmmessages.py b/src/drmmessages.py similarity index 100% rename from src/easy/drmmessages.py rename to src/drmmessages.py diff --git a/src/easy/drunkvigenere.py b/src/drunkvigenere.py similarity index 100% rename from src/easy/drunkvigenere.py rename to src/drunkvigenere.py diff --git a/src/easy/earlywinter.py b/src/earlywinter.py similarity index 100% rename from src/easy/earlywinter.py rename to src/earlywinter.py diff --git a/src/easy/easiest.py b/src/easiest.py similarity index 100% rename from src/easy/easiest.py rename to src/easiest.py diff --git a/src/easy/echoechoecho.py b/src/echoechoecho.py similarity index 100% rename from src/easy/echoechoecho.py rename to src/echoechoecho.py diff --git a/src/easy/egypt.py b/src/egypt.py similarity index 100% rename from src/easy/egypt.py rename to src/egypt.py diff --git a/src/easy/ekkidaudi.py b/src/ekkidaudi.py similarity index 100% rename from src/easy/ekkidaudi.py rename to src/ekkidaudi.py diff --git a/src/easy/electionparadox.py b/src/electionparadox.py similarity index 100% rename from src/easy/electionparadox.py rename to src/electionparadox.py diff --git a/src/easy/electricaloutlets.py b/src/electricaloutlets.py similarity index 100% rename from src/easy/electricaloutlets.py rename to src/electricaloutlets.py diff --git a/src/easy/eligibility.py b/src/eligibility.py similarity index 100% rename from src/easy/eligibility.py rename to src/eligibility.py diff --git a/src/easy/encodedmessage.py b/src/encodedmessage.py similarity index 100% rename from src/easy/encodedmessage.py rename to src/encodedmessage.py diff --git a/src/easy/endurvinnsla.py b/src/endurvinnsla.py similarity index 100% rename from src/easy/endurvinnsla.py rename to src/endurvinnsla.py diff --git a/src/easy/engineeringenglish.py b/src/engineeringenglish.py similarity index 100% rename from src/easy/engineeringenglish.py rename to src/engineeringenglish.py diff --git a/src/easy/erase.py b/src/erase.py similarity index 100% rename from src/easy/erase.py rename to src/erase.py diff --git a/src/easy/espresso.py b/src/espresso.py similarity index 100% rename from src/easy/espresso.py rename to src/espresso.py diff --git a/src/easy/estimatingtheareaofacircle.py b/src/estimatingtheareaofacircle.py similarity index 100% rename from src/easy/estimatingtheareaofacircle.py rename to src/estimatingtheareaofacircle.py diff --git a/src/easy/eveningout1.py b/src/eveningout1.py similarity index 100% rename from src/easy/eveningout1.py rename to src/eveningout1.py diff --git a/src/easy/eventplanning.py b/src/eventplanning.py similarity index 100% rename from src/easy/eventplanning.py rename to src/eventplanning.py diff --git a/src/easy/everywhere.py b/src/everywhere.py similarity index 100% rename from src/easy/everywhere.py rename to src/everywhere.py diff --git a/src/easy/exactlyelectrical.py b/src/exactlyelectrical.py similarity index 100% rename from src/easy/exactlyelectrical.py rename to src/exactlyelectrical.py diff --git a/src/easy/exam.py b/src/exam.py similarity index 100% rename from src/easy/exam.py rename to src/exam.py diff --git a/src/easy/expectedearnings.py b/src/expectedearnings.py similarity index 100% rename from src/easy/expectedearnings.py rename to src/expectedearnings.py diff --git a/src/easy/eyeofsauron.go b/src/eyeofsauron.go similarity index 100% rename from src/easy/eyeofsauron.go rename to src/eyeofsauron.go diff --git a/src/easy/eyeofsauron.py b/src/eyeofsauron.py similarity index 100% rename from src/easy/eyeofsauron.py rename to src/eyeofsauron.py diff --git a/src/easy/fadingwind.py b/src/fadingwind.py similarity index 100% rename from src/easy/fadingwind.py rename to src/fadingwind.py diff --git a/src/easy/faktor.py b/src/faktor.py similarity index 100% rename from src/easy/faktor.py rename to src/faktor.py diff --git a/src/easy/fallingapart.py b/src/fallingapart.py similarity index 100% rename from src/easy/fallingapart.py rename to src/fallingapart.py diff --git a/src/easy/falsesecurity.py b/src/falsesecurity.py similarity index 100% rename from src/easy/falsesecurity.py rename to src/falsesecurity.py diff --git a/src/easy/fastfood.py b/src/fastfood.py similarity index 100% rename from src/easy/fastfood.py rename to src/fastfood.py diff --git a/src/easy/fbiuniversal.py b/src/fbiuniversal.py similarity index 100% rename from src/easy/fbiuniversal.py rename to src/fbiuniversal.py diff --git a/src/easy/fifa.py b/src/fifa.py similarity index 100% rename from src/easy/fifa.py rename to src/fifa.py diff --git a/src/easy/fiftyshades.py b/src/fiftyshades.py similarity index 100% rename from src/easy/fiftyshades.py rename to src/fiftyshades.py diff --git a/src/easy/filip.py b/src/filip.py similarity index 100% rename from src/easy/filip.py rename to src/filip.py diff --git a/src/easy/finalexam2.py b/src/finalexam2.py similarity index 100% rename from src/easy/finalexam2.py rename to src/finalexam2.py diff --git a/src/easy/findingana.cpp b/src/findingana.cpp similarity index 100% rename from src/easy/findingana.cpp rename to src/findingana.cpp diff --git a/src/easy/findingana.go b/src/findingana.go similarity index 100% rename from src/easy/findingana.go rename to src/findingana.go diff --git a/src/easy/findingana.py b/src/findingana.py similarity index 100% rename from src/easy/findingana.py rename to src/findingana.py diff --git a/src/easy/fizzbuzz.py b/src/fizzbuzz.py similarity index 100% rename from src/easy/fizzbuzz.py rename to src/fizzbuzz.py diff --git a/src/easy/flexible.py b/src/flexible.py similarity index 100% rename from src/easy/flexible.py rename to src/flexible.py diff --git a/src/easy/fodelsedagsmemorisering.py b/src/fodelsedagsmemorisering.py similarity index 100% rename from src/easy/fodelsedagsmemorisering.py rename to src/fodelsedagsmemorisering.py diff --git a/src/easy/forcedchoice.py b/src/forcedchoice.py similarity index 100% rename from src/easy/forcedchoice.py rename to src/forcedchoice.py diff --git a/src/easy/freefood.py b/src/freefood.py similarity index 100% rename from src/easy/freefood.py rename to src/freefood.py diff --git a/src/easy/fromatob.py b/src/fromatob.py similarity index 100% rename from src/easy/fromatob.py rename to src/fromatob.py diff --git a/src/easy/fyi.go b/src/fyi.go similarity index 100% rename from src/easy/fyi.go rename to src/fyi.go diff --git a/src/easy/fyi.py b/src/fyi.py similarity index 100% rename from src/easy/fyi.py rename to src/fyi.py diff --git a/src/easy/gandalfsspell.py b/src/gandalfsspell.py similarity index 100% rename from src/easy/gandalfsspell.py rename to src/gandalfsspell.py diff --git a/src/easy/gcd.py b/src/gcd.py similarity index 100% rename from src/easy/gcd.py rename to src/gcd.py diff --git a/src/easy/gcvwr.py b/src/gcvwr.py similarity index 100% rename from src/easy/gcvwr.py rename to src/gcvwr.py diff --git a/src/easy/geneblock.py b/src/geneblock.py similarity index 100% rename from src/easy/geneblock.py rename to src/geneblock.py diff --git a/src/easy/gerrymandering.py b/src/gerrymandering.py similarity index 100% rename from src/easy/gerrymandering.py rename to src/gerrymandering.py diff --git a/src/easy/glassesfoggymomsspaghetti.py b/src/glassesfoggymomsspaghetti.py similarity index 100% rename from src/easy/glassesfoggymomsspaghetti.py rename to src/glassesfoggymomsspaghetti.py diff --git a/src/easy/goatrope.py b/src/goatrope.py similarity index 100% rename from src/easy/goatrope.py rename to src/goatrope.py diff --git a/src/easy/goombastacks.py b/src/goombastacks.py similarity index 100% rename from src/easy/goombastacks.py rename to src/goombastacks.py diff --git a/src/easy/grading.py b/src/grading.py similarity index 100% rename from src/easy/grading.py rename to src/grading.py diff --git a/src/easy/grassseed.py b/src/grassseed.py similarity index 100% rename from src/easy/grassseed.py rename to src/grassseed.py diff --git a/src/easy/greedilyincreasing.py b/src/greedilyincreasing.py similarity index 100% rename from src/easy/greedilyincreasing.py rename to src/greedilyincreasing.py diff --git a/src/easy/greedypolygons.py b/src/greedypolygons.py similarity index 100% rename from src/easy/greedypolygons.py rename to src/greedypolygons.py diff --git a/src/easy/greetings2.py b/src/greetings2.py similarity index 100% rename from src/easy/greetings2.py rename to src/greetings2.py diff --git a/src/medium/guess.py b/src/guess.py similarity index 100% rename from src/medium/guess.py rename to src/guess.py diff --git a/src/easy/hailstone.go b/src/hailstone.go similarity index 100% rename from src/easy/hailstone.go rename to src/hailstone.go diff --git a/src/easy/hailstone.py b/src/hailstone.py similarity index 100% rename from src/easy/hailstone.py rename to src/hailstone.py diff --git a/src/easy/hailstone2.py b/src/hailstone2.py similarity index 100% rename from src/easy/hailstone2.py rename to src/hailstone2.py diff --git a/src/easy/halfacookie.py b/src/halfacookie.py similarity index 100% rename from src/easy/halfacookie.py rename to src/halfacookie.py diff --git a/src/easy/hangman.py b/src/hangman.py similarity index 100% rename from src/easy/hangman.py rename to src/hangman.py diff --git a/src/easy/harshadnumbers.py b/src/harshadnumbers.py similarity index 100% rename from src/easy/harshadnumbers.py rename to src/harshadnumbers.py diff --git a/src/easy/haughtycuisine.py b/src/haughtycuisine.py similarity index 100% rename from src/easy/haughtycuisine.py rename to src/haughtycuisine.py diff --git a/src/easy/headguard.py b/src/headguard.py similarity index 100% rename from src/easy/headguard.py rename to src/headguard.py diff --git a/src/easy/heartrate.py b/src/heartrate.py similarity index 100% rename from src/easy/heartrate.py rename to src/heartrate.py diff --git a/src/easy/heimavinna.py b/src/heimavinna.py similarity index 100% rename from src/easy/heimavinna.py rename to src/heimavinna.py diff --git a/src/easy/heirsdilemma.py b/src/heirsdilemma.py similarity index 100% rename from src/easy/heirsdilemma.py rename to src/heirsdilemma.py diff --git a/src/easy/heliocentric.py b/src/heliocentric.py similarity index 100% rename from src/easy/heliocentric.py rename to src/heliocentric.py diff --git a/src/easy/hello.cpp b/src/hello.cpp similarity index 100% rename from src/easy/hello.cpp rename to src/hello.cpp diff --git a/src/easy/hello.go b/src/hello.go similarity index 100% rename from src/easy/hello.go rename to src/hello.go diff --git a/src/easy/hello.hs b/src/hello.hs similarity index 100% rename from src/easy/hello.hs rename to src/hello.hs diff --git a/src/easy/hello.java b/src/hello.java similarity index 100% rename from src/easy/hello.java rename to src/hello.java diff --git a/src/easy/hello.js b/src/hello.js similarity index 100% rename from src/easy/hello.js rename to src/hello.js diff --git a/src/easy/hello.kt b/src/hello.kt similarity index 100% rename from src/easy/hello.kt rename to src/hello.kt diff --git a/src/easy/hello.py b/src/hello.py similarity index 100% rename from src/easy/hello.py rename to src/hello.py diff --git a/src/easy/hello.rs b/src/hello.rs similarity index 100% rename from src/easy/hello.rs rename to src/hello.rs diff --git a/src/easy/helpaphd.py b/src/helpaphd.py similarity index 100% rename from src/easy/helpaphd.py rename to src/helpaphd.py diff --git a/src/easy/herman.py b/src/herman.py similarity index 100% rename from src/easy/herman.py rename to src/herman.py diff --git a/src/easy/hissingmicrophone.cpp b/src/hissingmicrophone.cpp similarity index 100% rename from src/easy/hissingmicrophone.cpp rename to src/hissingmicrophone.cpp diff --git a/src/easy/hissingmicrophone.js b/src/hissingmicrophone.js similarity index 100% rename from src/easy/hissingmicrophone.js rename to src/hissingmicrophone.js diff --git a/src/easy/hissingmicrophone.py b/src/hissingmicrophone.py similarity index 100% rename from src/easy/hissingmicrophone.py rename to src/hissingmicrophone.py diff --git a/src/easy/hittingtargets.py b/src/hittingtargets.py similarity index 100% rename from src/easy/hittingtargets.py rename to src/hittingtargets.py diff --git a/src/easy/hothike.py b/src/hothike.py similarity index 100% rename from src/easy/hothike.py rename to src/hothike.py diff --git a/src/easy/hradgreining.go b/src/hradgreining.go similarity index 100% rename from src/easy/hradgreining.go rename to src/hradgreining.go diff --git a/src/easy/hradgreining.py b/src/hradgreining.py similarity index 100% rename from src/easy/hradgreining.py rename to src/hradgreining.py diff --git a/src/easy/humancannonball2.py b/src/humancannonball2.py similarity index 100% rename from src/easy/humancannonball2.py rename to src/humancannonball2.py diff --git a/src/easy/hvertskalmaeta.py b/src/hvertskalmaeta.py similarity index 100% rename from src/easy/hvertskalmaeta.py rename to src/hvertskalmaeta.py diff --git a/src/easy/icpcawards.py b/src/icpcawards.py similarity index 100% rename from src/easy/icpcawards.py rename to src/icpcawards.py diff --git a/src/easy/illuminatispotti.py b/src/illuminatispotti.py similarity index 100% rename from src/easy/illuminatispotti.py rename to src/illuminatispotti.py diff --git a/src/easy/inheritance.py b/src/inheritance.py similarity index 100% rename from src/easy/inheritance.py rename to src/inheritance.py diff --git a/src/easy/internationaldates.py b/src/internationaldates.py similarity index 100% rename from src/easy/internationaldates.py rename to src/internationaldates.py diff --git a/src/easy/isithalloween.go b/src/isithalloween.go similarity index 100% rename from src/easy/isithalloween.go rename to src/isithalloween.go diff --git a/src/easy/isithalloween.py b/src/isithalloween.py similarity index 100% rename from src/easy/isithalloween.py rename to src/isithalloween.py diff --git a/src/easy/jabuke.py b/src/jabuke.py similarity index 100% rename from src/easy/jabuke.py rename to src/jabuke.py diff --git a/src/easy/jackolanternjuxtaposition.py b/src/jackolanternjuxtaposition.py similarity index 100% rename from src/easy/jackolanternjuxtaposition.py rename to src/jackolanternjuxtaposition.py diff --git a/src/easy/janitortroubles.py b/src/janitortroubles.py similarity index 100% rename from src/easy/janitortroubles.py rename to src/janitortroubles.py diff --git a/src/easy/jewelrybox.py b/src/jewelrybox.py similarity index 100% rename from src/easy/jewelrybox.py rename to src/jewelrybox.py diff --git a/src/easy/jobexpenses.py b/src/jobexpenses.py similarity index 100% rename from src/easy/jobexpenses.py rename to src/jobexpenses.py diff --git a/src/easy/jointjogjam.py b/src/jointjogjam.py similarity index 100% rename from src/easy/jointjogjam.py rename to src/jointjogjam.py diff --git a/src/easy/judgingmoose.go b/src/judgingmoose.go similarity index 100% rename from src/easy/judgingmoose.go rename to src/judgingmoose.go diff --git a/src/easy/judgingmoose.py b/src/judgingmoose.py similarity index 100% rename from src/easy/judgingmoose.py rename to src/judgingmoose.py diff --git a/src/easy/jumbojavelin.py b/src/jumbojavelin.py similarity index 100% rename from src/easy/jumbojavelin.py rename to src/jumbojavelin.py diff --git a/src/easy/justaminute.py b/src/justaminute.py similarity index 100% rename from src/easy/justaminute.py rename to src/justaminute.py diff --git a/src/easy/kaploeb.py b/src/kaploeb.py similarity index 100% rename from src/easy/kaploeb.py rename to src/kaploeb.py diff --git a/src/easy/karte.py b/src/karte.py similarity index 100% rename from src/easy/karte.py rename to src/karte.py diff --git a/src/easy/kemija08.js b/src/kemija08.js similarity index 100% rename from src/easy/kemija08.js rename to src/kemija08.js diff --git a/src/easy/kemija08.py b/src/kemija08.py similarity index 100% rename from src/easy/kemija08.py rename to src/kemija08.py diff --git a/src/easy/keytocrypto.py b/src/keytocrypto.py similarity index 100% rename from src/easy/keytocrypto.py rename to src/keytocrypto.py diff --git a/src/easy/keywords.py b/src/keywords.py similarity index 100% rename from src/easy/keywords.py rename to src/keywords.py diff --git a/src/easy/kitten.py b/src/kitten.py similarity index 100% rename from src/easy/kitten.py rename to src/kitten.py diff --git a/src/easy/kleptography.py b/src/kleptography.py similarity index 100% rename from src/easy/kleptography.py rename to src/kleptography.py diff --git a/src/easy/knightpacking.py b/src/knightpacking.py similarity index 100% rename from src/easy/knightpacking.py rename to src/knightpacking.py diff --git a/src/easy/knotknowledge.py b/src/knotknowledge.py similarity index 100% rename from src/easy/knotknowledge.py rename to src/knotknowledge.py diff --git a/src/easy/kornislav.py b/src/kornislav.py similarity index 100% rename from src/easy/kornislav.py rename to src/kornislav.py diff --git a/src/easy/krizaljka.py b/src/krizaljka.py similarity index 100% rename from src/easy/krizaljka.py rename to src/krizaljka.py diff --git a/src/easy/ladder.py b/src/ladder.py similarity index 100% rename from src/easy/ladder.py rename to src/ladder.py diff --git a/src/medium/lamps.py b/src/lamps.py similarity index 100% rename from src/medium/lamps.py rename to src/lamps.py diff --git a/src/easy/laptopsticker.cpp b/src/laptopsticker.cpp similarity index 100% rename from src/easy/laptopsticker.cpp rename to src/laptopsticker.cpp diff --git a/src/easy/laptopsticker.go b/src/laptopsticker.go similarity index 100% rename from src/easy/laptopsticker.go rename to src/laptopsticker.go diff --git a/src/easy/laptopsticker.py b/src/laptopsticker.py similarity index 100% rename from src/easy/laptopsticker.py rename to src/laptopsticker.py diff --git a/src/easy/lastfactorialdigit.py b/src/lastfactorialdigit.py similarity index 100% rename from src/easy/lastfactorialdigit.py rename to src/lastfactorialdigit.py diff --git a/src/easy/leftbeehind.go b/src/leftbeehind.go similarity index 100% rename from src/easy/leftbeehind.go rename to src/leftbeehind.go diff --git a/src/easy/leftbeehind.java b/src/leftbeehind.java similarity index 100% rename from src/easy/leftbeehind.java rename to src/leftbeehind.java diff --git a/src/easy/leftbeehind.py b/src/leftbeehind.py similarity index 100% rename from src/easy/leftbeehind.py rename to src/leftbeehind.py diff --git a/src/easy/leggjasaman.py b/src/leggjasaman.py similarity index 100% rename from src/easy/leggjasaman.py rename to src/leggjasaman.py diff --git a/src/easy/licensetolaunch.py b/src/licensetolaunch.py similarity index 100% rename from src/easy/licensetolaunch.py rename to src/licensetolaunch.py diff --git a/src/easy/lineup.py b/src/lineup.py similarity index 100% rename from src/easy/lineup.py rename to src/lineup.py diff --git a/src/medium/listgame.py b/src/listgame.py similarity index 100% rename from src/medium/listgame.py rename to src/listgame.py diff --git a/src/easy/locustlocus.py b/src/locustlocus.py similarity index 100% rename from src/easy/locustlocus.py rename to src/locustlocus.py diff --git a/src/easy/logicfunctions.cpp b/src/logicfunctions.cpp similarity index 100% rename from src/easy/logicfunctions.cpp rename to src/logicfunctions.cpp diff --git a/src/easy/lostlineup.py b/src/lostlineup.py similarity index 100% rename from src/easy/lostlineup.py rename to src/lostlineup.py diff --git a/src/easy/luhnchecksum.py b/src/luhnchecksum.py similarity index 100% rename from src/easy/luhnchecksum.py rename to src/luhnchecksum.py diff --git a/src/easy/magictrick.py b/src/magictrick.py similarity index 100% rename from src/easy/magictrick.py rename to src/magictrick.py diff --git a/src/easy/makingameowth.py b/src/makingameowth.py similarity index 100% rename from src/easy/makingameowth.py rename to src/makingameowth.py diff --git a/src/easy/maptiles2.go b/src/maptiles2.go similarity index 100% rename from src/easy/maptiles2.go rename to src/maptiles2.go diff --git a/src/easy/maptiles2.py b/src/maptiles2.py similarity index 100% rename from src/easy/maptiles2.py rename to src/maptiles2.py diff --git a/src/easy/marko.py b/src/marko.py similarity index 100% rename from src/easy/marko.py rename to src/marko.py diff --git a/src/easy/marswindow.py b/src/marswindow.py similarity index 100% rename from src/easy/marswindow.py rename to src/marswindow.py diff --git a/src/easy/mathhomework.py b/src/mathhomework.py similarity index 100% rename from src/easy/mathhomework.py rename to src/mathhomework.py diff --git a/src/easy/meanwords.py b/src/meanwords.py similarity index 100% rename from src/easy/meanwords.py rename to src/meanwords.py diff --git a/src/easy/measurement.py b/src/measurement.py similarity index 100% rename from src/easy/measurement.py rename to src/measurement.py diff --git a/src/easy/metaprogramming.py b/src/metaprogramming.py similarity index 100% rename from src/easy/metaprogramming.py rename to src/metaprogramming.py diff --git a/src/easy/methodicmultiplication.py b/src/methodicmultiplication.py similarity index 100% rename from src/easy/methodicmultiplication.py rename to src/methodicmultiplication.py diff --git a/src/easy/metronome.py b/src/metronome.py similarity index 100% rename from src/easy/metronome.py rename to src/metronome.py diff --git a/src/easy/mia.py b/src/mia.py similarity index 100% rename from src/easy/mia.py rename to src/mia.py diff --git a/src/easy/missingnumbers.py b/src/missingnumbers.py similarity index 100% rename from src/easy/missingnumbers.py rename to src/missingnumbers.py diff --git a/src/easy/mixedfractions.py b/src/mixedfractions.py similarity index 100% rename from src/easy/mixedfractions.py rename to src/mixedfractions.py diff --git a/src/easy/mjehuric.py b/src/mjehuric.py similarity index 100% rename from src/easy/mjehuric.py rename to src/mjehuric.py diff --git a/src/easy/moderatepace.py b/src/moderatepace.py similarity index 100% rename from src/easy/moderatepace.py rename to src/moderatepace.py diff --git a/src/easy/modulo.py b/src/modulo.py similarity index 100% rename from src/easy/modulo.py rename to src/modulo.py diff --git a/src/easy/monopol.py b/src/monopol.py similarity index 100% rename from src/easy/monopol.py rename to src/monopol.py diff --git a/src/easy/moscowdream.py b/src/moscowdream.py similarity index 100% rename from src/easy/moscowdream.py rename to src/moscowdream.py diff --git a/src/easy/mosquito.py b/src/mosquito.py similarity index 100% rename from src/easy/mosquito.py rename to src/mosquito.py diff --git a/src/easy/mrcodeformatgrader.py b/src/mrcodeformatgrader.py similarity index 100% rename from src/easy/mrcodeformatgrader.py rename to src/mrcodeformatgrader.py diff --git a/src/easy/mult.py b/src/mult.py similarity index 100% rename from src/easy/mult.py rename to src/mult.py diff --git a/src/easy/mumblerap.py b/src/mumblerap.py similarity index 100% rename from src/easy/mumblerap.py rename to src/mumblerap.py diff --git a/src/easy/musicalscales.py b/src/musicalscales.py similarity index 100% rename from src/easy/musicalscales.py rename to src/musicalscales.py diff --git a/src/easy/musicyourway.py b/src/musicyourway.py similarity index 100% rename from src/easy/musicyourway.py rename to src/musicyourway.py diff --git a/src/easy/mylla2.py b/src/mylla2.py similarity index 100% rename from src/easy/mylla2.py rename to src/mylla2.py diff --git a/src/easy/nastyhacks.cpp b/src/nastyhacks.cpp similarity index 94% rename from src/easy/nastyhacks.cpp rename to src/nastyhacks.cpp index 25da415..bd1ef36 100644 --- a/src/easy/nastyhacks.cpp +++ b/src/nastyhacks.cpp @@ -1,26 +1,26 @@ -#include - -using namespace std; - -int main() -{ - int n, r, e, c; - cin >> n; - - for (int i = 0; i < n; i++) - { - cin >> r >> e >> c; - if ((e - c) > r) - { - cout << "advertise"; - } - else if ((e - c) < r) - { - cout << "do not advertise"; - } - else - { - cout << "does not matter"; - } - } +#include + +using namespace std; + +int main() +{ + int n, r, e, c; + cin >> n; + + for (int i = 0; i < n; i++) + { + cin >> r >> e >> c; + if ((e - c) > r) + { + cout << "advertise"; + } + else if ((e - c) < r) + { + cout << "do not advertise"; + } + else + { + cout << "does not matter"; + } + } } \ No newline at end of file diff --git a/src/easy/nastyhacks.py b/src/nastyhacks.py similarity index 100% rename from src/easy/nastyhacks.py rename to src/nastyhacks.py diff --git a/src/easy/nodup.py b/src/nodup.py similarity index 100% rename from src/easy/nodup.py rename to src/nodup.py diff --git a/src/easy/nothanks.py b/src/nothanks.py similarity index 100% rename from src/easy/nothanks.py rename to src/nothanks.py diff --git a/src/easy/nsum.java b/src/nsum.java similarity index 100% rename from src/easy/nsum.java rename to src/nsum.java diff --git a/src/easy/nsum.py b/src/nsum.py similarity index 100% rename from src/easy/nsum.py rename to src/nsum.py diff --git a/src/easy/numberfun.py b/src/numberfun.py similarity index 100% rename from src/easy/numberfun.py rename to src/numberfun.py diff --git a/src/easy/oddecho.py b/src/oddecho.py similarity index 100% rename from src/easy/oddecho.py rename to src/oddecho.py diff --git a/src/easy/oddgnome.py b/src/oddgnome.py similarity index 100% rename from src/easy/oddgnome.py rename to src/oddgnome.py diff --git a/src/easy/oddities.py b/src/oddities.py similarity index 100% rename from src/easy/oddities.py rename to src/oddities.py diff --git a/src/easy/oddmanout.py b/src/oddmanout.py similarity index 100% rename from src/easy/oddmanout.py rename to src/oddmanout.py diff --git a/src/easy/offworldrecords.java b/src/offworldrecords.java similarity index 100% rename from src/easy/offworldrecords.java rename to src/offworldrecords.java diff --git a/src/easy/offworldrecords.py b/src/offworldrecords.py similarity index 100% rename from src/easy/offworldrecords.py rename to src/offworldrecords.py diff --git a/src/easy/ofugsnuid.py b/src/ofugsnuid.py similarity index 100% rename from src/easy/ofugsnuid.py rename to src/ofugsnuid.py diff --git a/src/easy/oktalni.py b/src/oktalni.py similarity index 100% rename from src/easy/oktalni.py rename to src/oktalni.py diff --git a/src/easy/onechicken.py b/src/onechicken.py similarity index 100% rename from src/easy/onechicken.py rename to src/onechicken.py diff --git a/src/easy/ordinals.py b/src/ordinals.py similarity index 100% rename from src/easy/ordinals.py rename to src/ordinals.py diff --git a/src/easy/ornaments.py b/src/ornaments.py similarity index 100% rename from src/easy/ornaments.py rename to src/ornaments.py diff --git a/src/easy/ostgotska.py b/src/ostgotska.py similarity index 100% rename from src/easy/ostgotska.py rename to src/ostgotska.py diff --git a/src/easy/overdraft.py b/src/overdraft.py similarity index 100% rename from src/easy/overdraft.py rename to src/overdraft.py diff --git a/src/easy/ovissa.py b/src/ovissa.py similarity index 100% rename from src/easy/ovissa.py rename to src/ovissa.py diff --git a/src/easy/owlandfox.py b/src/owlandfox.py similarity index 100% rename from src/easy/owlandfox.py rename to src/owlandfox.py diff --git a/src/easy/pachydermpeanutpacking.py b/src/pachydermpeanutpacking.py similarity index 100% rename from src/easy/pachydermpeanutpacking.py rename to src/pachydermpeanutpacking.py diff --git a/src/easy/parentgap.py b/src/parentgap.py similarity index 100% rename from src/easy/parentgap.py rename to src/parentgap.py diff --git a/src/easy/parket.py b/src/parket.py similarity index 100% rename from src/easy/parket.py rename to src/parket.py diff --git a/src/easy/parking.py b/src/parking.py similarity index 100% rename from src/easy/parking.py rename to src/parking.py diff --git a/src/easy/parking2.py b/src/parking2.py similarity index 100% rename from src/easy/parking2.py rename to src/parking2.py diff --git a/src/easy/patuljci.py b/src/patuljci.py similarity index 100% rename from src/easy/patuljci.py rename to src/patuljci.py diff --git a/src/easy/pauleigon.go b/src/pauleigon.go similarity index 100% rename from src/easy/pauleigon.go rename to src/pauleigon.go diff --git a/src/easy/pauleigon.py b/src/pauleigon.py similarity index 100% rename from src/easy/pauleigon.py rename to src/pauleigon.py diff --git a/src/easy/peachpowderpolygon.py b/src/peachpowderpolygon.py similarity index 100% rename from src/easy/peachpowderpolygon.py rename to src/peachpowderpolygon.py diff --git a/src/easy/peasoup.py b/src/peasoup.py similarity index 100% rename from src/easy/peasoup.py rename to src/peasoup.py diff --git a/src/easy/peragrams.py b/src/peragrams.py similarity index 100% rename from src/easy/peragrams.py rename to src/peragrams.py diff --git a/src/easy/perket.py b/src/perket.py similarity index 100% rename from src/easy/perket.py rename to src/perket.py diff --git a/src/easy/permutedarithmeticsequence.py b/src/permutedarithmeticsequence.py similarity index 100% rename from src/easy/permutedarithmeticsequence.py rename to src/permutedarithmeticsequence.py diff --git a/src/easy/pervasiveheartmonitor.py b/src/pervasiveheartmonitor.py similarity index 100% rename from src/easy/pervasiveheartmonitor.py rename to src/pervasiveheartmonitor.py diff --git a/src/easy/pet.py b/src/pet.py similarity index 100% rename from src/easy/pet.py rename to src/pet.py diff --git a/src/easy/pieceofcake2.py b/src/pieceofcake2.py similarity index 100% rename from src/easy/pieceofcake2.py rename to src/pieceofcake2.py diff --git a/src/easy/piglatin.py b/src/piglatin.py similarity index 100% rename from src/easy/piglatin.py rename to src/piglatin.py diff --git a/src/medium/pikemaneasy.py b/src/pikemaneasy.py similarity index 100% rename from src/medium/pikemaneasy.py rename to src/pikemaneasy.py diff --git a/src/easy/pizza2.py b/src/pizza2.py similarity index 100% rename from src/easy/pizza2.py rename to src/pizza2.py diff --git a/src/easy/pizzubestun.py b/src/pizzubestun.py similarity index 100% rename from src/easy/pizzubestun.py rename to src/pizzubestun.py diff --git a/src/easy/planetaris.py b/src/planetaris.py similarity index 100% rename from src/easy/planetaris.py rename to src/planetaris.py diff --git a/src/easy/planina.py b/src/planina.py similarity index 100% rename from src/easy/planina.py rename to src/planina.py diff --git a/src/easy/plantingtrees.py b/src/plantingtrees.py similarity index 100% rename from src/easy/plantingtrees.py rename to src/plantingtrees.py diff --git a/src/easy/pokechat.py b/src/pokechat.py similarity index 100% rename from src/easy/pokechat.py rename to src/pokechat.py diff --git a/src/easy/pokerhand.py b/src/pokerhand.py similarity index 100% rename from src/easy/pokerhand.py rename to src/pokerhand.py diff --git a/src/easy/polymul1.py b/src/polymul1.py similarity index 100% rename from src/easy/polymul1.py rename to src/polymul1.py diff --git a/src/easy/popularitycontest.py b/src/popularitycontest.py similarity index 100% rename from src/easy/popularitycontest.py rename to src/popularitycontest.py diff --git a/src/easy/pot.py b/src/pot.py similarity index 100% rename from src/easy/pot.py rename to src/pot.py diff --git a/src/easy/printingcosts.py b/src/printingcosts.py similarity index 100% rename from src/easy/printingcosts.py rename to src/printingcosts.py diff --git a/src/easy/provincesandgold.py b/src/provincesandgold.py similarity index 100% rename from src/easy/provincesandgold.py rename to src/provincesandgold.py diff --git a/src/easy/prsteni.py b/src/prsteni.py similarity index 100% rename from src/easy/prsteni.py rename to src/prsteni.py diff --git a/src/easy/prva.py b/src/prva.py similarity index 100% rename from src/easy/prva.py rename to src/prva.py diff --git a/src/easy/ptice.py b/src/ptice.py similarity index 100% rename from src/easy/ptice.py rename to src/ptice.py diff --git a/src/easy/pyramids.py b/src/pyramids.py similarity index 100% rename from src/easy/pyramids.py rename to src/pyramids.py diff --git a/src/easy/qaly.py b/src/qaly.py similarity index 100% rename from src/easy/qaly.py rename to src/qaly.py diff --git a/src/easy/quadrant.go b/src/quadrant.go similarity index 100% rename from src/easy/quadrant.go rename to src/quadrant.go diff --git a/src/easy/quadrant.java b/src/quadrant.java similarity index 100% rename from src/easy/quadrant.java rename to src/quadrant.java diff --git a/src/easy/quadrant.py b/src/quadrant.py similarity index 100% rename from src/easy/quadrant.py rename to src/quadrant.py diff --git a/src/easy/quadrant.rs b/src/quadrant.rs similarity index 100% rename from src/easy/quadrant.rs rename to src/quadrant.rs diff --git a/src/easy/quickbrownfox.py b/src/quickbrownfox.py similarity index 100% rename from src/easy/quickbrownfox.py rename to src/quickbrownfox.py diff --git a/src/easy/quickestimate.java b/src/quickestimate.java similarity index 100% rename from src/easy/quickestimate.java rename to src/quickestimate.java diff --git a/src/easy/quickestimate.py b/src/quickestimate.py similarity index 100% rename from src/easy/quickestimate.py rename to src/quickestimate.py diff --git a/src/easy/quiteaproblem.py b/src/quiteaproblem.py similarity index 100% rename from src/easy/quiteaproblem.py rename to src/quiteaproblem.py diff --git a/src/easy/r2.cpp b/src/r2.cpp similarity index 100% rename from src/easy/r2.cpp rename to src/r2.cpp diff --git a/src/easy/r2.go b/src/r2.go similarity index 100% rename from src/easy/r2.go rename to src/r2.go diff --git a/src/easy/r2.java b/src/r2.java similarity index 100% rename from src/easy/r2.java rename to src/r2.java diff --git a/src/easy/r2.py b/src/r2.py similarity index 100% rename from src/easy/r2.py rename to src/r2.py diff --git a/src/easy/racingalphabet.py b/src/racingalphabet.py similarity index 100% rename from src/easy/racingalphabet.py rename to src/racingalphabet.py diff --git a/src/easy/raggedright.py b/src/raggedright.py similarity index 100% rename from src/easy/raggedright.py rename to src/raggedright.py diff --git a/src/easy/railroad2.go b/src/railroad2.go similarity index 100% rename from src/easy/railroad2.go rename to src/railroad2.go diff --git a/src/easy/railroad2.java b/src/railroad2.java similarity index 100% rename from src/easy/railroad2.java rename to src/railroad2.java diff --git a/src/easy/railroad2.py b/src/railroad2.py similarity index 100% rename from src/easy/railroad2.py rename to src/railroad2.py diff --git a/src/easy/rankproblem.py b/src/rankproblem.py similarity index 100% rename from src/easy/rankproblem.py rename to src/rankproblem.py diff --git a/src/easy/ratingproblems.java b/src/ratingproblems.java similarity index 100% rename from src/easy/ratingproblems.java rename to src/ratingproblems.java diff --git a/src/easy/ratingproblems.py b/src/ratingproblems.py similarity index 100% rename from src/easy/ratingproblems.py rename to src/ratingproblems.py diff --git a/src/easy/rationalsequence2.py b/src/rationalsequence2.py similarity index 100% rename from src/easy/rationalsequence2.py rename to src/rationalsequence2.py diff --git a/src/easy/recipes.py b/src/recipes.py similarity index 100% rename from src/easy/recipes.py rename to src/recipes.py diff --git a/src/easy/recount.py b/src/recount.py similarity index 100% rename from src/easy/recount.py rename to src/recount.py diff --git a/src/easy/rectanglearea.py b/src/rectanglearea.py similarity index 100% rename from src/easy/rectanglearea.py rename to src/rectanglearea.py diff --git a/src/easy/reducedidnumbers.py b/src/reducedidnumbers.py similarity index 100% rename from src/easy/reducedidnumbers.py rename to src/reducedidnumbers.py diff --git a/src/easy/relocation.py b/src/relocation.py similarity index 100% rename from src/easy/relocation.py rename to src/relocation.py diff --git a/src/easy/restaurantopening.py b/src/restaurantopening.py similarity index 100% rename from src/easy/restaurantopening.py rename to src/restaurantopening.py diff --git a/src/easy/reversebinary.py b/src/reversebinary.py similarity index 100% rename from src/easy/reversebinary.py rename to src/reversebinary.py diff --git a/src/easy/reverserot.py b/src/reverserot.py similarity index 100% rename from src/easy/reverserot.py rename to src/reverserot.py diff --git a/src/easy/rijeci.go b/src/rijeci.go similarity index 100% rename from src/easy/rijeci.go rename to src/rijeci.go diff --git a/src/easy/rijeci.java b/src/rijeci.java similarity index 100% rename from src/easy/rijeci.java rename to src/rijeci.java diff --git a/src/easy/rijeci.py b/src/rijeci.py similarity index 100% rename from src/easy/rijeci.py rename to src/rijeci.py diff --git a/src/easy/romans.go b/src/romans.go similarity index 100% rename from src/easy/romans.go rename to src/romans.go diff --git a/src/easy/romans.py b/src/romans.py similarity index 100% rename from src/easy/romans.py rename to src/romans.py diff --git a/src/easy/runlengthencodingrun.py b/src/runlengthencodingrun.py similarity index 100% rename from src/easy/runlengthencodingrun.py rename to src/runlengthencodingrun.py diff --git a/src/easy/samedigitseasy.py b/src/samedigitseasy.py similarity index 100% rename from src/easy/samedigitseasy.py rename to src/samedigitseasy.py diff --git a/src/easy/samedigitshard.py b/src/samedigitshard.py similarity index 100% rename from src/easy/samedigitshard.py rename to src/samedigitshard.py diff --git a/src/easy/savingdaylight.py b/src/savingdaylight.py similarity index 100% rename from src/easy/savingdaylight.py rename to src/savingdaylight.py diff --git a/src/easy/savingforretirement.py b/src/savingforretirement.py similarity index 100% rename from src/easy/savingforretirement.py rename to src/savingforretirement.py diff --git a/src/easy/scalingrecipe.py b/src/scalingrecipe.py similarity index 100% rename from src/easy/scalingrecipe.py rename to src/scalingrecipe.py diff --git a/src/easy/schoolspirit.py b/src/schoolspirit.py similarity index 100% rename from src/easy/schoolspirit.py rename to src/schoolspirit.py diff --git a/src/easy/secretmessage.py b/src/secretmessage.py similarity index 100% rename from src/easy/secretmessage.py rename to src/secretmessage.py diff --git a/src/easy/securedoors.py b/src/securedoors.py similarity index 100% rename from src/easy/securedoors.py rename to src/securedoors.py diff --git a/src/easy/server.py b/src/server.py similarity index 100% rename from src/easy/server.py rename to src/server.py diff --git a/src/easy/sevenwonders.py b/src/sevenwonders.py similarity index 100% rename from src/easy/sevenwonders.py rename to src/sevenwonders.py diff --git a/src/easy/shatteredcake.py b/src/shatteredcake.py similarity index 100% rename from src/easy/shatteredcake.py rename to src/shatteredcake.py diff --git a/src/easy/shopaholic.py b/src/shopaholic.py similarity index 100% rename from src/easy/shopaholic.py rename to src/shopaholic.py diff --git a/src/easy/shoppinglisteasy.py b/src/shoppinglisteasy.py similarity index 100% rename from src/easy/shoppinglisteasy.py rename to src/shoppinglisteasy.py diff --git a/src/easy/sibice.py b/src/sibice.py similarity index 100% rename from src/easy/sibice.py rename to src/sibice.py diff --git a/src/easy/sidewayssorting.py b/src/sidewayssorting.py similarity index 100% rename from src/easy/sidewayssorting.py rename to src/sidewayssorting.py diff --git a/src/easy/sifferprodukt.py b/src/sifferprodukt.py similarity index 100% rename from src/easy/sifferprodukt.py rename to src/sifferprodukt.py diff --git a/src/medium/simon.py b/src/simon.py similarity index 100% rename from src/medium/simon.py rename to src/simon.py diff --git a/src/easy/simone.py b/src/simone.py similarity index 100% rename from src/easy/simone.py rename to src/simone.py diff --git a/src/easy/simonsays.py b/src/simonsays.py similarity index 100% rename from src/easy/simonsays.py rename to src/simonsays.py diff --git a/src/easy/simpleaddition.py b/src/simpleaddition.py similarity index 100% rename from src/easy/simpleaddition.py rename to src/simpleaddition.py diff --git a/src/easy/simplefactoring.py b/src/simplefactoring.py similarity index 100% rename from src/easy/simplefactoring.py rename to src/simplefactoring.py diff --git a/src/easy/sith.py b/src/sith.py similarity index 100% rename from src/easy/sith.py rename to src/sith.py diff --git a/src/easy/sjecista.py b/src/sjecista.py similarity index 100% rename from src/easy/sjecista.py rename to src/sjecista.py diff --git a/src/easy/skener.py b/src/skener.py similarity index 100% rename from src/easy/skener.py rename to src/skener.py diff --git a/src/easy/skocimis.go b/src/skocimis.go similarity index 100% rename from src/easy/skocimis.go rename to src/skocimis.go diff --git a/src/easy/skocimis.py b/src/skocimis.py similarity index 100% rename from src/easy/skocimis.py rename to src/skocimis.py diff --git a/src/easy/skruop.py b/src/skruop.py similarity index 100% rename from src/easy/skruop.py rename to src/skruop.py diff --git a/src/easy/slatkisi.py b/src/slatkisi.py similarity index 100% rename from src/easy/slatkisi.py rename to src/slatkisi.py diff --git a/src/easy/smil.java b/src/smil.java similarity index 100% rename from src/easy/smil.java rename to src/smil.java diff --git a/src/easy/smil.py b/src/smil.py similarity index 100% rename from src/easy/smil.py rename to src/smil.py diff --git a/src/easy/sodaslurper.go b/src/sodaslurper.go similarity index 100% rename from src/easy/sodaslurper.go rename to src/sodaslurper.go diff --git a/src/easy/sodaslurper.py b/src/sodaslurper.py similarity index 100% rename from src/easy/sodaslurper.py rename to src/sodaslurper.py diff --git a/src/easy/sok.py b/src/sok.py similarity index 100% rename from src/easy/sok.py rename to src/sok.py diff --git a/src/easy/somesum.py b/src/somesum.py similarity index 100% rename from src/easy/somesum.py rename to src/somesum.py diff --git a/src/easy/sort.py b/src/sort.py similarity index 100% rename from src/easy/sort.py rename to src/sort.py diff --git a/src/easy/sortofsorting.py b/src/sortofsorting.py similarity index 100% rename from src/easy/sortofsorting.py rename to src/sortofsorting.py diff --git a/src/easy/sorttwonumbers.cpp b/src/sorttwonumbers.cpp similarity index 100% rename from src/easy/sorttwonumbers.cpp rename to src/sorttwonumbers.cpp diff --git a/src/easy/sorttwonumbers.go b/src/sorttwonumbers.go similarity index 100% rename from src/easy/sorttwonumbers.go rename to src/sorttwonumbers.go diff --git a/src/easy/sorttwonumbers.py b/src/sorttwonumbers.py similarity index 100% rename from src/easy/sorttwonumbers.py rename to src/sorttwonumbers.py diff --git a/src/easy/sottkvi.java b/src/sottkvi.java similarity index 100% rename from src/easy/sottkvi.java rename to src/sottkvi.java diff --git a/src/easy/sottkvi.py b/src/sottkvi.py similarity index 100% rename from src/easy/sottkvi.py rename to src/sottkvi.py diff --git a/src/easy/soylent.py b/src/soylent.py similarity index 100% rename from src/easy/soylent.py rename to src/soylent.py diff --git a/src/easy/spavanac.cpp b/src/spavanac.cpp similarity index 100% rename from src/easy/spavanac.cpp rename to src/spavanac.cpp diff --git a/src/easy/spavanac.java b/src/spavanac.java similarity index 100% rename from src/easy/spavanac.java rename to src/spavanac.java diff --git a/src/easy/spavanac.py b/src/spavanac.py similarity index 100% rename from src/easy/spavanac.py rename to src/spavanac.py diff --git a/src/easy/speeding.py b/src/speeding.py similarity index 100% rename from src/easy/speeding.py rename to src/speeding.py diff --git a/src/easy/speedlimit.py b/src/speedlimit.py similarity index 100% rename from src/easy/speedlimit.py rename to src/speedlimit.py diff --git a/src/easy/spellingbee.py b/src/spellingbee.py similarity index 100% rename from src/easy/spellingbee.py rename to src/spellingbee.py diff --git a/src/easy/spritt.py b/src/spritt.py similarity index 100% rename from src/easy/spritt.py rename to src/spritt.py diff --git a/src/easy/squarepeg.py b/src/squarepeg.py similarity index 100% rename from src/easy/squarepeg.py rename to src/squarepeg.py diff --git a/src/easy/stafur.py b/src/stafur.py similarity index 100% rename from src/easy/stafur.py rename to src/stafur.py diff --git a/src/easy/statistics.py b/src/statistics.py similarity index 100% rename from src/easy/statistics.py rename to src/statistics.py diff --git a/src/easy/stickykeys.py b/src/stickykeys.py similarity index 100% rename from src/easy/stickykeys.py rename to src/stickykeys.py diff --git a/src/easy/stokigalistor.py b/src/stokigalistor.py similarity index 100% rename from src/easy/stokigalistor.py rename to src/stokigalistor.py diff --git a/src/easy/stopwatch.py b/src/stopwatch.py similarity index 100% rename from src/easy/stopwatch.py rename to src/stopwatch.py diff --git a/src/easy/streetsahead.py b/src/streetsahead.py similarity index 100% rename from src/easy/streetsahead.py rename to src/streetsahead.py diff --git a/src/easy/successfulzoom.py b/src/successfulzoom.py similarity index 100% rename from src/easy/successfulzoom.py rename to src/successfulzoom.py diff --git a/src/easy/sumkindofproblem.py b/src/sumkindofproblem.py similarity index 100% rename from src/easy/sumkindofproblem.py rename to src/sumkindofproblem.py diff --git a/src/easy/sumoftheothers.py b/src/sumoftheothers.py similarity index 100% rename from src/easy/sumoftheothers.py rename to src/sumoftheothers.py diff --git a/src/easy/sumsquareddigits.py b/src/sumsquareddigits.py similarity index 100% rename from src/easy/sumsquareddigits.py rename to src/sumsquareddigits.py diff --git a/src/easy/sunandmoon.py b/src/sunandmoon.py similarity index 100% rename from src/easy/sunandmoon.py rename to src/sunandmoon.py diff --git a/src/easy/symmetricorder.py b/src/symmetricorder.py similarity index 100% rename from src/easy/symmetricorder.py rename to src/symmetricorder.py diff --git a/src/easy/synchronizinglists.py b/src/synchronizinglists.py similarity index 100% rename from src/easy/synchronizinglists.py rename to src/synchronizinglists.py diff --git a/src/easy/t9spelling.py b/src/t9spelling.py similarity index 100% rename from src/easy/t9spelling.py rename to src/t9spelling.py diff --git a/src/easy/taisformula.py b/src/taisformula.py similarity index 100% rename from src/easy/taisformula.py rename to src/taisformula.py diff --git a/src/easy/tajna.py b/src/tajna.py similarity index 100% rename from src/easy/tajna.py rename to src/tajna.py diff --git a/src/easy/tarifa.py b/src/tarifa.py similarity index 100% rename from src/easy/tarifa.py rename to src/tarifa.py diff --git a/src/easy/temperatureconfusion.py b/src/temperatureconfusion.py similarity index 100% rename from src/easy/temperatureconfusion.py rename to src/temperatureconfusion.py diff --git a/src/easy/testdrive.py b/src/testdrive.py similarity index 100% rename from src/easy/testdrive.py rename to src/testdrive.py diff --git a/src/easy/tetration.py b/src/tetration.py similarity index 100% rename from src/easy/tetration.py rename to src/tetration.py diff --git a/src/easy/thanos.py b/src/thanos.py similarity index 100% rename from src/easy/thanos.py rename to src/thanos.py diff --git a/src/easy/thegrandadventure.py b/src/thegrandadventure.py similarity index 100% rename from src/easy/thegrandadventure.py rename to src/thegrandadventure.py diff --git a/src/easy/thelastproblem.go b/src/thelastproblem.go similarity index 100% rename from src/easy/thelastproblem.go rename to src/thelastproblem.go diff --git a/src/easy/thelastproblem.py b/src/thelastproblem.py similarity index 100% rename from src/easy/thelastproblem.py rename to src/thelastproblem.py diff --git a/src/easy/thisaintyourgrandpascheckerboard.py b/src/thisaintyourgrandpascheckerboard.py similarity index 100% rename from src/easy/thisaintyourgrandpascheckerboard.py rename to src/thisaintyourgrandpascheckerboard.py diff --git a/src/easy/timeloop.cpp b/src/timeloop.cpp similarity index 100% rename from src/easy/timeloop.cpp rename to src/timeloop.cpp diff --git a/src/easy/timeloop.py b/src/timeloop.py similarity index 100% rename from src/easy/timeloop.py rename to src/timeloop.py diff --git a/src/easy/titlecost.py b/src/titlecost.py similarity index 100% rename from src/easy/titlecost.py rename to src/titlecost.py diff --git a/src/easy/toflur.py b/src/toflur.py similarity index 100% rename from src/easy/toflur.py rename to src/toflur.py diff --git a/src/easy/toilet.py b/src/toilet.py similarity index 100% rename from src/easy/toilet.py rename to src/toilet.py diff --git a/src/easy/tolower.py b/src/tolower.py similarity index 100% rename from src/easy/tolower.py rename to src/tolower.py diff --git a/src/easy/tornbygge.py b/src/tornbygge.py similarity index 100% rename from src/easy/tornbygge.py rename to src/tornbygge.py diff --git a/src/easy/touchscreenkeyboard.py b/src/touchscreenkeyboard.py similarity index 100% rename from src/easy/touchscreenkeyboard.py rename to src/touchscreenkeyboard.py diff --git a/src/easy/transitwoes.py b/src/transitwoes.py similarity index 100% rename from src/easy/transitwoes.py rename to src/transitwoes.py diff --git a/src/easy/tri.py b/src/tri.py similarity index 100% rename from src/easy/tri.py rename to src/tri.py diff --git a/src/easy/triarea.cpp b/src/triarea.cpp similarity index 100% rename from src/easy/triarea.cpp rename to src/triarea.cpp diff --git a/src/easy/triarea.go b/src/triarea.go similarity index 100% rename from src/easy/triarea.go rename to src/triarea.go diff --git a/src/easy/triarea.java b/src/triarea.java similarity index 100% rename from src/easy/triarea.java rename to src/triarea.java diff --git a/src/easy/triarea.py b/src/triarea.py similarity index 100% rename from src/easy/triarea.py rename to src/triarea.py diff --git a/src/easy/trik.py b/src/trik.py similarity index 100% rename from src/easy/trik.py rename to src/trik.py diff --git a/src/easy/tripletexting.py b/src/tripletexting.py similarity index 100% rename from src/easy/tripletexting.py rename to src/tripletexting.py diff --git a/src/easy/twostones.go b/src/twostones.go similarity index 100% rename from src/easy/twostones.go rename to src/twostones.go diff --git a/src/easy/twostones.hs b/src/twostones.hs similarity index 100% rename from src/easy/twostones.hs rename to src/twostones.hs diff --git a/src/easy/twostones.java b/src/twostones.java similarity index 100% rename from src/easy/twostones.java rename to src/twostones.java diff --git a/src/easy/twostones.js b/src/twostones.js similarity index 100% rename from src/easy/twostones.js rename to src/twostones.js diff --git a/src/easy/twostones.kt b/src/twostones.kt similarity index 100% rename from src/easy/twostones.kt rename to src/twostones.kt diff --git a/src/easy/twostones.py b/src/twostones.py similarity index 100% rename from src/easy/twostones.py rename to src/twostones.py diff --git a/src/easy/twosum.cpp b/src/twosum.cpp similarity index 100% rename from src/easy/twosum.cpp rename to src/twosum.cpp diff --git a/src/easy/twosum.go b/src/twosum.go similarity index 100% rename from src/easy/twosum.go rename to src/twosum.go diff --git a/src/easy/twosum.java b/src/twosum.java similarity index 100% rename from src/easy/twosum.java rename to src/twosum.java diff --git a/src/easy/twosum.py b/src/twosum.py similarity index 100% rename from src/easy/twosum.py rename to src/twosum.py diff --git a/src/easy/ullendullendoff.py b/src/ullendullendoff.py similarity index 100% rename from src/easy/ullendullendoff.py rename to src/ullendullendoff.py diff --git a/src/easy/ultimatebinarywatch.py b/src/ultimatebinarywatch.py similarity index 100% rename from src/easy/ultimatebinarywatch.py rename to src/ultimatebinarywatch.py diff --git a/src/easy/undeadoralive.py b/src/undeadoralive.py similarity index 100% rename from src/easy/undeadoralive.py rename to src/undeadoralive.py diff --git a/src/easy/unlockpattern.py b/src/unlockpattern.py similarity index 100% rename from src/easy/unlockpattern.py rename to src/unlockpattern.py diff --git a/src/easy/upprodun.py b/src/upprodun.py similarity index 100% rename from src/easy/upprodun.py rename to src/upprodun.py diff --git a/src/easy/utf8.py b/src/utf8.py similarity index 100% rename from src/easy/utf8.py rename to src/utf8.py diff --git a/src/easy/vaccineefficacy.py b/src/vaccineefficacy.py similarity index 100% rename from src/easy/vaccineefficacy.py rename to src/vaccineefficacy.py diff --git a/src/easy/vajningsplikt.py b/src/vajningsplikt.py similarity index 100% rename from src/easy/vajningsplikt.py rename to src/vajningsplikt.py diff --git a/src/easy/variablearithmetic.py b/src/variablearithmetic.py similarity index 100% rename from src/easy/variablearithmetic.py rename to src/variablearithmetic.py diff --git a/src/easy/veci.py b/src/veci.py similarity index 100% rename from src/easy/veci.py rename to src/veci.py diff --git a/src/medium/vectorfunctions.cpp b/src/vectorfunctions.cpp similarity index 100% rename from src/medium/vectorfunctions.cpp rename to src/vectorfunctions.cpp diff --git a/src/easy/vedurheidar.py b/src/vedurheidar.py similarity index 100% rename from src/easy/vedurheidar.py rename to src/vedurheidar.py diff --git a/src/easy/vedurvindhradi.py b/src/vedurvindhradi.py similarity index 100% rename from src/easy/vedurvindhradi.py rename to src/vedurvindhradi.py diff --git a/src/easy/vefthjonatjon.py b/src/vefthjonatjon.py similarity index 100% rename from src/easy/vefthjonatjon.py rename to src/vefthjonatjon.py diff --git a/src/easy/velkomin.py b/src/velkomin.py similarity index 100% rename from src/easy/velkomin.py rename to src/velkomin.py diff --git a/src/easy/vemvinner.py b/src/vemvinner.py similarity index 100% rename from src/easy/vemvinner.py rename to src/vemvinner.py diff --git a/src/easy/videospeedup.py b/src/videospeedup.py similarity index 100% rename from src/easy/videospeedup.py rename to src/videospeedup.py diff --git a/src/easy/vidsnuningur.py b/src/vidsnuningur.py similarity index 100% rename from src/easy/vidsnuningur.py rename to src/vidsnuningur.py diff --git a/src/easy/vote.py b/src/vote.py similarity index 100% rename from src/easy/vote.py rename to src/vote.py diff --git a/src/easy/warehouse.py b/src/warehouse.py similarity index 100% rename from src/easy/warehouse.py rename to src/warehouse.py diff --git a/src/easy/weakvertices.py b/src/weakvertices.py similarity index 100% rename from src/easy/weakvertices.py rename to src/weakvertices.py diff --git a/src/medium/wertyu.py b/src/wertyu.py similarity index 100% rename from src/medium/wertyu.py rename to src/wertyu.py diff --git a/src/easy/whatdoesthefoxsay.py b/src/whatdoesthefoxsay.py similarity index 100% rename from src/easy/whatdoesthefoxsay.py rename to src/whatdoesthefoxsay.py diff --git a/src/easy/whichisgreater.cpp b/src/whichisgreater.cpp similarity index 100% rename from src/easy/whichisgreater.cpp rename to src/whichisgreater.cpp diff --git a/src/easy/whichisgreater.go b/src/whichisgreater.go similarity index 100% rename from src/easy/whichisgreater.go rename to src/whichisgreater.go diff --git a/src/easy/whichisgreater.java b/src/whichisgreater.java similarity index 100% rename from src/easy/whichisgreater.java rename to src/whichisgreater.java diff --git a/src/easy/whichisgreater.js b/src/whichisgreater.js similarity index 100% rename from src/easy/whichisgreater.js rename to src/whichisgreater.js diff --git a/src/easy/whichisgreater.py b/src/whichisgreater.py similarity index 100% rename from src/easy/whichisgreater.py rename to src/whichisgreater.py diff --git a/src/easy/wizardofodds.py b/src/wizardofodds.py similarity index 100% rename from src/easy/wizardofodds.py rename to src/wizardofodds.py diff --git a/src/medium/wordsfornumbers.py b/src/wordsfornumbers.py similarity index 100% rename from src/medium/wordsfornumbers.py rename to src/wordsfornumbers.py diff --git a/src/easy/yinyangstones.py b/src/yinyangstones.py similarity index 100% rename from src/easy/yinyangstones.py rename to src/yinyangstones.py diff --git a/src/easy/yoda.py b/src/yoda.py similarity index 100% rename from src/easy/yoda.py rename to src/yoda.py diff --git a/src/easy/zamka.py b/src/zamka.py similarity index 100% rename from src/easy/zamka.py rename to src/zamka.py diff --git a/src/easy/zanzibar.java b/src/zanzibar.java similarity index 100% rename from src/easy/zanzibar.java rename to src/zanzibar.java diff --git a/src/easy/zanzibar.py b/src/zanzibar.py similarity index 100% rename from src/easy/zanzibar.py rename to src/zanzibar.py diff --git a/src/easy/zoo.py b/src/zoo.py similarity index 100% rename from src/easy/zoo.py rename to src/zoo.py diff --git a/src/easy/zoom.py b/src/zoom.py similarity index 100% rename from src/easy/zoom.py rename to src/zoom.py diff --git a/update_docs.py b/update_docs.py index 5c16362..264665a 100644 --- a/update_docs.py +++ b/update_docs.py @@ -3,8 +3,8 @@ import subprocess from argparse import ArgumentParser from collections import Counter -from datetime import date from pathlib import Path +import sys import matplotlib.pyplot as plt import requests @@ -33,8 +33,11 @@ "js": "JavaScript", "kt": "Kotlin", } -summary = {} -all_files = [] +level_map = { + "Easy": ":green_circle:", + "Medium": ":yellow_circle:", + "Hard": ":red_circle:", +} try: with open("docs/.cache", "rb") as f: @@ -42,103 +45,87 @@ except: cache = {} -for folder in folders: - uri = f"src/{folder}" - if not Path(uri).exists(): - Path(uri).mkdir(exist_ok=True) - - files = list(Path(uri).glob("*")) - solutions = {} - - for file in files: - if file.stem not in solutions: - solutions[file.stem] = [file.name] - else: - solutions[file.stem].append(file.name) - all_files.append(file.name) - - total = len(solutions) - summary[folder] = total - - if not force and set(solutions.keys()) < set(cache.keys()): - print(f"⛔ Skipped {uri}: no update needed") - print() - continue - - try: - subprocess.call( - [ - "black", - uri, - ] - ) - except: - pass - try: - subprocess.call( - [ - "clang-format", - "-i", - f"{Path('src')/folder/'*.cpp'}", - "-style=Microsoft", - ] - ) - except: - pass - - s = "s" if total > 1 else "" - print() - print(f"🔍 Found {total} solution{s} from {uri}") - print() - - now = date.today() - text = """--- -hide: - - toc ---- -""" - text += f""" -# Difficulty - {folder.capitalize()} (as of {now}) -""" - prompt = "📖 Refreshing Docs" - for solution, languages in tqdm(sorted(solutions.items()), desc=prompt): - url = f"https://open.kattis.com/problems/{solution}" - if solution in cache: - name = cache[solution] - else: - html = requests.get(url, verify=False) - soup = BeautifulSoup(html.content, "html.parser") - name = soup.find("h1").text - cache[solution] = name - if len(languages) > 1: - suffix = f"s in {len(languages)} languages" - else: - ext = languages[0].split(".")[-1] - suffix = f" in {language_map[ext]}" - card = f""" -## [{name}]({url}) +if force: + cache = {} -??? success "Solution{suffix}" -""" - for language in sorted(languages): - ext = language.split(".")[-1] - card += f""" - === "{language_map[ext]}" +files = list(Path("src").glob("*")) +solutions = {} +for file in files: + if file.stem not in solutions: + solutions[file.stem] = [file.name] + else: + solutions[file.stem].append(file.name) - ```{ext} linenums="1" - --8<-- "{uri}/{language}" - ``` -""" - text += card +if set(solutions.keys()) <= set(cache.keys()): + print(f"⛔ no update needed") + sys.exit() + +try: + subprocess.call( + [ + "black", + "src", + ] + ) +except: + pass + +try: + subprocess.call( + [ + "clang-format", + "-i", + f"{Path('src')/'*.cpp'}", + "-style=Microsoft", + ] + ) +except: + pass + +for name, languages in tqdm(solutions.items(), desc="🌐 Caching"): + if name in cache: + title, score, level = cache[name] + else: + url = f"https://open.kattis.com/problems/{name}?tab=metadata" + html = requests.get(url, verify=False, timeout=30) + soup = BeautifulSoup(html.content, "html.parser") + title = soup.find("h1").text + metas = soup.find_all("div", class_="metadata_list-item") + difficulty = [ + item + for item in metas + if item.attrs.get("data-name") == "metadata_item-difficulty" + ][0] + difficulty = difficulty.text.split()[-1] + score, level = difficulty[:3], difficulty[3:] + cache[name] = (title, score, level) + +total = len(solutions) +s = "s" if total > 1 else "" +print() +print(f"🔍 Found {total} solution{s}") +print() + +with open("docs/.cache", "wb") as f: + pickle.dump(cache, f) + +s = dict(Counter([title[0] for title, _, _ in cache.values()]).most_common()) +ax = sns.barplot(x=list(s.keys()), y=list(s.values())) +ax.get_figure().savefig("docs/summary-by-initial.png", bbox_inches="tight") + +plt.clf() - print() +s = dict(Counter([language_map[f.name.split(".")[-1]] for f in files]).most_common()) +ax = sns.barplot(x=list(s.keys()), y=list(s.values())) +ax.set_xticklabels(ax.get_xticklabels(), rotation=45) +ax.get_figure().savefig("docs/summary-by-language.png", bbox_inches="tight") - with open(f"docs/{folder}.md", "w", encoding="utf-8") as f: - f.write(text) +plt.clf() + +summary = Counter(level for _, _, level in cache.values()) with open(".all-contributorsrc") as f: - data = json.load(f) - num_contributors = len(data["contributors"]) + num_contributors = len(json.load(f)["contributors"]) with open("docs/index.md", "w") as f: text = """ @@ -151,9 +138,9 @@ ## Summary by Difficulty """ - for folder, total in summary.items(): + for level, total in summary.most_common(): text += f""" -- [{folder.capitalize()} ^{total}^]({folder}.md) +- {level} ^{total}^ """ text += f""" ## Summary by Initial @@ -172,16 +159,37 @@ """ f.write(text.lstrip()) -with open("docs/.cache", "wb") as f: - pickle.dump(cache, f) -s = dict(Counter([k[0] for k in cache.values()]).most_common()) -ax = sns.barplot(x=list(s.keys()), y=list(s.values())) -ax.get_figure().savefig("docs/summary-by-initial.png", bbox_inches="tight") +text = """--- +hide: + - toc +--- +""" +for name, languages in tqdm(sorted(solutions.items()), desc="📖 Refreshing Docs"): + url = f"https://open.kattis.com/problems/{name}" + title, score, level = cache[name] -plt.clf() + if len(languages) > 1: + suffix = f"s in {len(languages)} languages" + else: + ext = languages[0].split(".")[-1] + suffix = f" in {language_map[ext]}" -s = dict(Counter([language_map[f.split(".")[-1]] for f in all_files]).most_common()) -ax = sns.barplot(x=list(s.keys()), y=list(s.values())) -ax.set_xticklabels(ax.get_xticklabels(), rotation=45) -ax.get_figure().savefig("docs/summary-by-language.png", bbox_inches="tight") + card = f""" +## {level_map[level]} [{title}]({url}) + +??? success "Solution{suffix}" +""" + for language in sorted(languages): + ext = language.split(".")[-1] + card += f""" + === "{language_map[ext]}" + + ```{ext} linenums="1" + --8<-- "src/{language}" + ``` +""" + text += card + +with open(f"docs/solutions.md", "w", encoding="utf-8") as f: + f.write(text)