This repository contains my solutions for various competitive programming problems.
Note: Not all source code offers a valid solution (yet). Most code does.
| year |
01 |
02 |
03 |
04 |
05 |
06 |
07 |
08 |
09 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 2015 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
 |
 |
 |
| 2016 |
 |
 |
 |
 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2017 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2018 |
 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2019 |
 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2020 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| 2021 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| 2022 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
|
|
|
|
| 2023 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| 2024 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
| 2025 |
 |
|
 |
 |
 |
 |
 |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| title |
solution |
url |
| ACS |
 |
 |
| BINARYSUB |
 |
 |
| BINBASBASIC |
 |
 |
| BITBLEND |
 |
 |
| BITSWAPS |
 |
 |
| BITTUP |
 |
 |
| BOBBANK |
 |
 |
| BUILDINGRACE |
 |
 |
| CHEFBARBER |
 |
 |
| CHEFORA |
 |
 |
| CHFCLASS |
 |
 |
| CHFDBT |
 |
 |
| CHFHEIST |
 |
 |
| COCONUT |
 |
 |
| COUNTONES |
 |
 |
| CWIREFRAME |
 |
 |
| DAREA |
 |
 |
| DAREA |
 |
 |
| DNASTRAND |
 |
 |
| EITA |
 |
 |
| EQPAIR |
 |
 |
| EUREKA |
 |
 |
| FLOW002 |
 |
 |
| FLOW006 |
 |
 |
| FLOW007 |
 |
 |
| FLOW016 |
 |
 |
| GENIUS |
 |
 |
| HELIUM3 |
 |
 |
| INTEST |
 |
 |
| MAXMEXPATH |
 |
 |
| NOFIX |
 |
 |
| PAIREQ |
 |
 |
| PBATTLE |
 |
 |
| PBATTLE2 |
 |
 |
| PRB01 |
 |
 |
| RELATIVE |
 |
 |
| REVSORT |
 |
 |
| SHROUTE |
 |
 |
| SINGLEOP1 |
 |
 |
| SINGLEOP2 |
 |
 |
| SPEEDTEST |
 |
 |
| START01 |
 |
 |
| SUBARRY |
 |
 |
| SUBSTRING |
 |
 |
| SUBTRCOV |
 |
 |
| SUB_XOR |
 |
 |
| TEAMOF2 |
 |
 |
| WCC |
 |
 |
| WORDLE |
 |
 |
| XORPAL |
 |
 |
| XXOORR |
 |
 |
| title |
solution |
url |
| 10kindsofpeople |
 |
 |
| 2048 |
 |
 |
| 3dprinter |
 |
 |
| 4thought |
 |
 |
| 8queens |
 |
 |
| 99problems |
 |
 |
| aaah |
 |
 |
| abc |
 |
 |
| aboveaverage |
 |
 |
| acm |
 |
 |
| addingtrouble |
 |
 |
| addingwords |
 |
 |
| addtwonumbers |
 |
 |
| adjoin |
 |
 |
| adolescentarchitecture |
 |
 |
| akcija |
 |
 |
| aliennumbers |
 |
 |
| allaboutthatbase |
 |
 |
| allpairspath |
 |
 |
| almostperfect |
 |
 |
| alphabetspam |
 |
 |
| ameriskur |
 |
 |
| amoebas |
 |
 |
| amsterdamdistance |
 |
 |
| anagramcounting |
 |
 |
| anewalphabet |
 |
 |
| anotherbrick |
 |
 |
| anothercandies |
 |
 |
| apaxiaaans |
 |
 |
| apaxianparent |
 |
 |
| aprizenoonecanwin |
 |
 |
| aqueducts |
 |
 |
| areal |
 |
 |
| arithmeticfunctions |
 |
 |
| armcoordination |
 |
 |
| armystrengtheasy |
 |
 |
| astrologicalsign |
 |
 |
| autori |
 |
 |
| averagecharacter |
 |
 |
| averageseasy |
 |
 |
| averageshard |
 |
 |
| avion |
 |
 |
| babelfish |
 |
 |
| babybites |
 |
 |
| babypanda |
 |
 |
| backspace |
 |
 |
| backspace |
 |
 |
| baconeggsandspam |
 |
 |
| bank |
 |
 |
| basicprogramming2 |
 |
 |
| basketballoneonone |
 |
 |
| batterup |
 |
 |
| battlesimulation |
 |
 |
| beautifulprimes |
 |
 |
| beavergnaw |
 |
 |
| beehives |
 |
 |
| beekeeper |
 |
 |
| beepcode |
 |
 |
| beepcode |
 |
 |
| beeproblem |
 |
 |
| bela |
 |
 |
| bestrelayteam |
 |
 |
| betting |
 |
 |
| bijele |
 |
 |
| billiard |
 |
 |
| birthdayboy |
 |
 |
| blackfriday |
 |
 |
| bluetooth |
 |
 |
| bnpc |
 |
 |
| board |
 |
 |
| boatparts |
 |
 |
| bokforking |
 |
 |
| bookingaroom |
 |
 |
| bossbattle |
 |
 |
| bottledup |
 |
 |
| boundingrobots |
 |
 |
| breakingbad |
 |
 |
| breakingbranches |
 |
 |
| brexit |
 |
 |
| brokenswords |
 |
 |
| buka |
 |
 |
| bungeejumping |
 |
 |
| bus |
 |
 |
| busnumbers |
 |
 |
| cangaroo |
 |
 |
| cardboardcontainer |
 |
 |
| carddivisibility |
 |
 |
| cardtrick2 |
 |
 |
| carrots |
 |
 |
| cd |
 |
 |
| ceiling |
 |
 |
| centsavings |
 |
 |
| cetiri |
 |
 |
| cetvrta |
 |
 |
| chanukah |
 |
 |
| chopin |
 |
 |
| cinema |
 |
 |
| cinemaseating |
 |
 |
| citynumbers |
 |
 |
| classfieldtrip |
 |
 |
| classpicture |
 |
 |
| classy |
 |
 |
| climbingstairs |
 |
 |
| clockpictures |
 |
 |
| closingtheloop |
 |
 |
| coconut |
 |
 |
| codetosavelives |
 |
 |
| coffeecupcombo |
 |
 |
| cokolada |
 |
 |
| cold |
 |
 |
| combinationlock |
 |
 |
| commercials |
 |
 |
| compass |
 |
 |
| compoundwords |
 |
 |
| conformity |
 |
 |
| conundrum |
 |
 |
| convexhull |
 |
 |
| convexpolygonarea |
 |
 |
| countcircuits |
 |
 |
| countingclauses |
 |
 |
| countingstars |
 |
 |
| countthevowels |
 |
 |
| coursescheduling |
 |
 |
| cprnummer |
 |
 |
| cudoviste |
 |
 |
| cups |
 |
 |
| cutinline |
 |
 |
| cutthenegativity |
 |
 |
| cuttingthenecklace |
 |
 |
| dartscoring |
 |
 |
| dartscoring |
 |
 |
| dasblinkenlights |
 |
 |
| datum |
 |
 |
| deathknight |
 |
 |
| deathstar |
 |
 |
| deceleratingjump |
 |
 |
| delftdistance |
 |
 |
| delimitersoup |
 |
 |
| detaileddifferences |
 |
 |
| dicecup |
 |
 |
| dicegame |
 |
 |
| dickandjane |
 |
 |
| different |
 |
 |
| differentdistances |
 |
 |
| digicomp2 |
 |
 |
| digitswap |
 |
 |
| discdistrict |
 |
 |
| display |
 |
 |
| divvyingup |
 |
 |
| doublepassword |
 |
 |
| drmmessages |
 |
 |
| drunkvigenere |
 |
 |
| dunglish |
 |
 |
| earlywinter |
 |
 |
| easiest |
 |
 |
| echoechoecho |
 |
 |
| eenymeeny |
 |
 |
| ekkidaudi |
 |
 |
| electricaloutlets |
 |
 |
| eligibility |
 |
 |
| empleh |
 |
 |
| encodedmessage |
 |
 |
| engineeringenglish |
 |
 |
| enigma |
 |
 |
| erase |
 |
 |
| estimatingtheareaofacircle |
 |
 |
| eveningout1 |
 |
 |
| evenup |
 |
 |
| everywhere |
 |
 |
| exactlyelectrical |
 |
 |
| exam |
 |
 |
| expeditiouscubing |
 |
 |
| eyeofsauron |
 |
 |
| fadingwind |
 |
 |
| fairplay |
 |
 |
| faktor |
 |
 |
| fallingapart |
 |
 |
| fieldtrip |
 |
 |
| fifa |
 |
 |
| fiftyshades |
 |
 |
| filip |
 |
 |
| finalexam2 |
 |
 |
| financialplanning |
 |
 |
| findingana |
 |
 |
| fire2 |
 |
 |
| fizzbuzz |
 |
 |
| flexible |
 |
 |
| flowergarden |
 |
 |
| flowlayout |
 |
 |
| fluortanten |
 |
 |
| flyingsafely |
 |
 |
| fodelsedagsmemorisering |
 |
 |
| foldingacube |
 |
 |
| forcedchoice |
 |
 |
| forestfires |
 |
 |
| freefood |
 |
 |
| fyi |
 |
 |
| gamenight |
 |
 |
| gcd |
 |
 |
| gcvwr |
 |
 |
| gerrymandering |
 |
 |
| getshorty |
 |
 |
| ghostleg |
 |
 |
| goatrope |
 |
 |
| goingincircles |
 |
 |
| goingincircles |
 |
 |
| grading |
 |
 |
| grassseed |
 |
 |
| greedilyincreasing |
 |
 |
| greedypolygons |
 |
 |
| greetingcard |
 |
 |
| greetings2 |
 |
 |
| guess |
 |
 |
| guessinggame |
 |
 |
| guessthedatastructure |
 |
 |
| hailstone2 |
 |
 |
| halfacookie |
 |
 |
| hangingout |
 |
 |
| hangman |
 |
 |
| harshadnumbers |
 |
 |
| haughtycuisine |
 |
 |
| haypoints |
 |
 |
| heap |
 |
 |
| heartrate |
 |
 |
| heimavinna |
 |
 |
| heirsdilemma |
 |
 |
| heliocentric |
 |
 |
| hello |
 |
 |
| helpaphd |
 |
 |
| herman |
 |
 |
| hidingplaces |
 |
 |
| hissingmicrophone |
 |
 |
| hittingtargets |
 |
 |
| hothike |
 |
 |
| hradgreining |
 |
 |
| humancannonball2 |
 |
 |
| hungarianservices |
 |
 |
| hungarianservices |
 |
 |
| hungarianservices |
 |
 |
| hydrasheads |
 |
 |
| icpcawards |
 |
 |
| incognito |
 |
 |
| inflation |
 |
 |
| internationaldates |
 |
 |
| interplanetarytunnels |
 |
 |
| intervalscheduling |
 |
 |
| interviewquestion |
 |
 |
| isithalloween |
 |
 |
| islandalliances |
 |
 |
| islands3 |
 |
 |
| islandtour |
 |
 |
| iwannabe |
 |
 |
| jabuke |
 |
 |
| jackolanternjuxtaposition |
 |
 |
| jage |
 |
 |
| janitortroubles |
 |
 |
| jewelrybox |
 |
 |
| jobexpenses |
 |
 |
| joinstrings |
 |
 |
| jointjogjam |
 |
 |
| judgingmoose |
 |
 |
| jughard |
 |
 |
| jumbojavelin |
 |
 |
| junk |
 |
 |
| jurassicjigsaw |
 |
 |
| justaminute |
 |
 |
| kafkaesque |
 |
 |
| karte |
 |
 |
| kemija08 |
 |
 |
| keylogger |
 |
 |
| keytocrypto |
 |
 |
| kingpinescape |
 |
 |
| kitten |
 |
 |
| kleptography |
 |
 |
| knapsack |
 |
 |
| knightpacking |
 |
 |
| knotknowledge |
 |
 |
| kornislav |
 |
 |
| krizaljka |
 |
 |
| ladder |
 |
 |
| laptopsticker |
 |
 |
| lastafarjan |
 |
 |
| lastfactorialdigit |
 |
 |
| lastminute |
 |
 |
| leftbeehind |
 |
 |
| leggjasaman |
 |
 |
| lektira |
 |
 |
| lessvsfewer |
 |
 |
| licensetolaunch |
 |
 |
| lineup |
 |
 |
| liquidassets |
 |
 |
| listgame |
 |
 |
| listgame |
 |
 |
| lockedtreasure |
 |
 |
| logicfunctions |
 |
 |
| longestprimesum |
 |
 |
| longswaps |
 |
 |
| loorolls |
 |
 |
| lopsidedlineup |
 |
 |
| lostlineup |
 |
 |
| luckyshirt |
 |
 |
| luhnchecksum |
 |
 |
| lyklagangriti |
 |
 |
| magicalgcd |
 |
 |
| magictrick |
 |
 |
| makingameowth |
 |
 |
| mancala |
 |
 |
| maptiles2 |
 |
 |
| marswindow |
 |
 |
| matrix |
 |
 |
| methodicmultiplication |
 |
 |
| metronome |
 |
 |
| mia |
 |
 |
| minimumscalar |
 |
 |
| mirror |
 |
 |
| missingnumbers |
 |
 |
| mixedfractions |
 |
 |
| mjehuric |
 |
 |
| moderatepace |
 |
 |
| modulo |
 |
 |
| monopol |
 |
 |
| moscowdream |
 |
 |
| mosquito |
 |
 |
| mosquitoes |
 |
 |
| mosquitoes |
 |
 |
| mult |
 |
 |
| musicalscales |
 |
 |
| nastyhacks |
 |
 |
| nodup |
 |
 |
| nothanks |
 |
 |
| nsum |
 |
 |
| numberfun |
 |
 |
| numbersetseasy |
 |
 |
| numbertree |
 |
 |
| oddecho |
 |
 |
| oddgnome |
 |
 |
| oddities |
 |
 |
| oddmanout |
 |
 |
| olderbrother |
 |
 |
| onechicken |
 |
 |
| ostgotska |
 |
 |
| overdraft |
 |
 |
| ovissa |
 |
 |
| owlandfox |
 |
 |
| pagelayout |
 |
 |
| pagelayout |
 |
 |
| paintball |
 |
 |
| palindromicpassword |
 |
 |
| parking |
 |
 |
| parking2 |
 |
 |
| patuljci |
 |
 |
| pauleigon |
 |
 |
| peragrams |
 |
 |
| pervasiveheartmonitor |
 |
 |
| pet |
 |
 |
| phonelist |
 |
 |
| pieceofcake2 |
 |
 |
| pivot |
 |
 |
| pizza2 |
 |
 |
| planina |
 |
 |
| plantingtrees |
 |
 |
| pointinpolygon |
 |
 |
| pokechat |
 |
 |
| pokerhand |
 |
 |
| polygonarea |
 |
 |
| polymul1 |
 |
 |
| popkorn |
 |
 |
| popularitycontest |
 |
 |
| pot |
 |
 |
| pravokutni |
 |
 |
| prettygoodcuberoot |
 |
 |
| primecount |
 |
 |
| primesieve |
 |
 |
| princesspeach |
 |
 |
| protectingthecollection |
 |
 |
| provincesandgold |
 |
 |
| prozor |
 |
 |
| prsteni |
 |
 |
| prva |
 |
 |
| ptice |
 |
 |
| pyramids |
 |
 |
| qaly |
 |
 |
| quadrant |
 |
 |
| quickbrownfox |
 |
 |
| quickestimate |
 |
 |
| r2 |
 |
 |
| raceday |
 |
 |
| racingalphabet |
 |
 |
| raggedright |
 |
 |
| railroad2 |
 |
 |
| ratingproblems |
 |
 |
| rationalsequence |
 |
 |
| rationalsequence2 |
 |
 |
| rationalsequence3 |
 |
 |
| recipes |
 |
 |
| recount |
 |
 |
| rectanglearea |
 |
 |
| reduction |
 |
 |
| refrigerator |
 |
 |
| relocation |
 |
 |
| reverse |
 |
 |
| reversebinary |
 |
 |
| reverserot |
 |
 |
| rijeci |
 |
 |
| roberthood |
 |
 |
| romans |
 |
 |
| runlengthencodingrun |
 |
 |
| sacredtexts |
 |
 |
| safesecret |
 |
 |
| savingforretirement |
 |
 |
| scalingrecipe |
 |
 |
| schoolspirit |
 |
 |
| scrollingsign |
 |
 |
| secretmessage |
 |
 |
| securedoors |
 |
 |
| semafori |
 |
 |
| sequencereduction |
 |
 |
| server |
 |
 |
| sevenwonders |
 |
 |
| shatteredcake |
 |
 |
| shopaholic |
 |
 |
| shoppinglisteasy |
 |
 |
| shortestcompositesum |
 |
 |
| shortestpath1 |
 |
 |
| sibice |
 |
 |
| sifferprodukt |
 |
 |
| silverstarstandsalone |
 |
 |
| sim |
 |
 |
| simon |
 |
 |
| simonsays |
 |
 |
| simpleaddition |
 |
 |
| simplepolygon |
 |
 |
| simplysudoku |
 |
 |
| sith |
 |
 |
| sjecista |
 |
 |
| skener |
 |
 |
| skocimis |
 |
 |
| skruop |
 |
 |
| smil |
 |
 |
| snapperhard |
 |
 |
| socialdistancing2 |
 |
 |
| sodaslurper |
 |
 |
| sok |
 |
 |
| somesum |
 |
 |
| sort |
 |
 |
| sortofsorting |
 |
 |
| sorttwonumbers |
 |
 |
| sottkvi |
 |
 |
| soylent |
 |
 |
| spavanac |
 |
 |
| speeding |
 |
 |
| speedlimit |
 |
 |
| spiderman |
 |
 |
| spritt |
 |
 |
| squarepeg |
 |
 |
| stack |
 |
 |
| stampcombinations |
 |
 |
| stararrangements |
 |
 |
| statistics |
 |
 |
| stickysituation |
 |
 |
| stopwatch |
 |
 |
| succession |
 |
 |
| sumkindofproblem |
 |
 |
| sumsquareddigits |
 |
 |
| symmetricorder |
 |
 |
| synchronizinglists |
 |
 |
| t9spelling |
 |
 |
| taisformula |
 |
 |
| target |
 |
 |
| tarifa |
 |
 |
| teque |
 |
 |
| tetration |
 |
 |
| tetris |
 |
 |
| textureanalysis |
 |
 |
| thelastproblem |
 |
 |
| theplank |
 |
 |
| thisaintyourgrandpascheckerboard |
 |
 |
| timebomb |
 |
 |
| timeloop |
 |
 |
| toilet |
 |
 |
| tornbygge |
 |
 |
| toy |
 |
 |
| tracksmoothing |
 |
 |
| trainpassengers |
 |
 |
| transitwoes |
 |
 |
| tri |
 |
 |
| triangularcollection |
 |
 |
| triarea |
 |
 |
| trik |
 |
 |
| tripletexting |
 |
 |
| twostones |
 |
 |
| twosum |
 |
 |
| ultimatebinarywatch |
 |
 |
| undeadoralive |
 |
 |
| unionfind |
 |
 |
| unlockpattern |
 |
 |
| upprodun |
 |
 |
| vacuumba |
 |
 |
| variedamusements |
 |
 |
| vauvau |
 |
 |
| veci |
 |
 |
| vectorfunctions |
 |
 |
| vedurheidar |
 |
 |
| vefthjonatjon |
 |
 |
| velkomin |
 |
 |
| vidsnuningur |
 |
 |
| volim |
 |
 |
| vote |
 |
 |
| watersheds |
 |
 |
| weakvertices |
 |
 |
| wertyu |
 |
 |
| whatdoesthefoxsay |
 |
 |
| wheresmyinternet |
 |
 |
| whichisgreater |
 |
 |
| yinyangstones |
 |
 |
| yoda |
 |
 |
| youbethejudge2 |
 |
 |
| zamka |
 |
 |
| zanzibar |
 |
 |
| zoo |
 |
 |
| zoom |
 |
 |
| zyxab |
 |
 |
Icons from Icons8