Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Competitive Programming 4 Solutions

My solutions to some of the Kattis problems listed in Competitive Programming 4. Some UVA Online Judge problems are also solved on Virtual Judge.

C++ code usually requires C++17 to work. Python code usually requires Python 3.8 to work.

List of Kattis Questions Solved

Auto Update

IndexQuestion TitleSolution
110kindsofpeopleC++
22048C
3246greaaatC++
42nairePython
53dprinterC++
64_thoughtPython
799problemsPython
8a1paperC++
9abcHaskell
10abinitioC++
11absurdistan2Python
12absurdistan3C++
13accessdeniedPython
14acmPython
15adaPython
16addemupHaskell
17addingwordsPython
18adjoinC++
19administrativeproblemsPython
20adsC++
21airconditionedC++
22airlinehubC++
23airportsC++
24akcijaC++
25alehouseC++
26alicedigitalC++
27aliennumbersPython
28aliensC++
29allaboutthatbasePython
30alldifferentdirectionsPython
31allpairspathC++
32almostperfectC++
33almostunionfindC++
34alphabetC++
35alphabetspamPython
36amandaC++
37amazingC++
38amoebasC++
39amsterdamdistancePython
40amultiplicationgamePython
41amusicalquestionC++
42anagramcountingPython
43andrewantC++
44anewadventureC++
45anewalphabetPython
46animalC++
47anotherbrickOcaml
48anothercandiesPython
49anotherdiceC++
50anthonyC++
51anti11Python
52antsC++
53apaxiaaansPython
54aplusbC++
55appallingarchitecturePython
56applesHaskell
57applesackC++
58aqueductsC++
59arachnophobiaC++
61arbitrageC++, Python
62arcticnetworkC++
63areyoulisteningPython
64arithmeticPython
65armystrengtheasyPython
66armystrengthhardPython
67arrivingontimeC++
68arturC++
69artworkC++
70asciifigurerotationPython
71askmarilynPython
72aspenavenueC++
73astroPython
74atrivialpursuitC++
75automatictradingC++
76autoriPython
77averageshardC++
78avoidingtheapocalypseC++
79avoidlandC++
80babybitesHaskell
81babylonianPython
82babynamesC++
83bachetsgameC++
84backpackbuddiesC++
85backspaceOcaml
86bagoftilesC++
87balanceddietC++
88ballsandneedlesC++
89baloniC++
90bankC++
91base2palindromePython
92basicinterpreterPython
93basketballoneononePython
94batmanacciPython
95batteriesPython
96batterupPython
97battleshipPython
98battlesimulationPython
99beanbagC++
100beatspreadPython
101beautifulprimesPython
102beavergnawPython
103beehivesPython
104beehouseperimeterPython
105beeproblemC++
106belaPython
107bellsPython
108bestbeforePython
109bestcompressionPython
110bicikliC++
111biggestC++
112bigtruckC++
113bijelePython
115bilateralC++, C++
116billiardPython
117bingC++
118birdsC++
119birthdayC++
120birthdayboyPython
121bishopsPython
122bitbybitC++
123bitsC++
124bitsequalizerPython
125blackfridayC++
126blackoutPython
127blockcrusherC++
128blockgame2Python
129bobbyPython
130boggleC++
131bokforingC++
132bondC++
133bookclubC++
134bookingPython
135bookingaroomPython
136borgC++
137bossbattlePython
138bottlesC++
139boxesC++
140breadC++
141breakingbadC++
142breakingcakeC++
143brexitC++
144brexitnegotiationsC++
145bribeC++
146brickwallC++
147bridgeautomationC++
148brokenswordsPython
149browniepointsPython
150bstC++
151budgetC++
152buggyrobotC++
153buildingboundariesPython
154bumpedC++
155bundlesC++
156bungeebuilderC++
157burrowswheelerC++
158busPython
159busnumbersPython
160busnumbers_2C++
161busplanningC++
162busticketC++
163bustourC++
164buttonbashingC++
165buzzwordsC++
166cakePython
167calculatingdartscoresC++
168calculatorPython
169caloriesOcaml
170candleboxPython
171candydistributionC++
172candydivisionPython
173canonicalC++
174cantinaofbabelPython
175cantorPython
176canvasC++
177canvaslinePython
178capsulesC++
179cardboardcontainerPython
180cardhandC++
181cardmagicC++
182cardtradingC++
183cardtrick2Python
184carefulascentC++
185carpetPython
186carpoolC++
187carrotsPython
188cartroubleC++
189carvetC++
190catalansquarePython
191catandmiceC++
192catenymsC++
193cateringC++
194catsC++
195caveexplorationC++
197ceilingC++, Haskell
198celebritysplitC++
199centsavingsC++
200ceremonyC++
201cetiriPython
202chanukahPython
203characterPython
204charlesinchargeC++
205chartingprogressHaskell
206checkingbreakC++
207checkingforcorrectnessPython
208cheeseifyoupleaseC++
209chemistsvowsC++
210chessPython
211chesscompetitionC++
212chesstournamentC++
214chewbaccaC++, Python
215chineseremainderPython
216chocolatesPython
217chopinPython
218chopwoodC++
219circuitmathC++
220circularC++
221cityC++
222classicalcountingC++
223classpictureC++
224classroomsC++
225classyPython
226climbingstairsHaskell
227clinicC++
228clockconstructionC++
229clockpicturesC++
230closestpair1C++
231closestpair2C++
232closestsumsC++
233closingtheloopHaskell
234coastC++
235cocktailPython
236cocoacoalitionC++
237coconutPython
238cokoladaC++
239coldHaskell
240collapseC++
241collidingtrafficPython
242colorC++
243coloringC++
244combinationlockHaskell
245commercialsC++
246committeeassignmentC++
247communicationC++
248communicationssatelliteC++
249companypicnicC++
250compassPython
251competitivearcadebasketballPython
252compoundwordsC++
253compromisePython
254conformityPython
255congestC++
256connectthedotsPython
257conquestcampaignC++
258consecutivesumsC++
259conservationC++
260constrainedfreedomofchoiceC++
261contestschedulingPython
262continuousmedianC++
263controlC++
264conundrumPython
265convexC++
266convexhullC++
267conveyorbeltsC++
268convoyC++
269cookieselectionC++
270cool1C++
271copsandrobbersC++
272cordonbleuC++
273correspondenceC++
274councillingC++
275countcircuitsC++
276countingstarsC++
277coveredwalkwayC++
278cpuC++
279crackerbarrelC++
280crackingrsaC++
281crackingthecodePython
282cranesC++
283creditcardPython
284crnePython
285cropeasyC++
286crosscountryC++
287crowdcontrolC++
288crusadersC++
289cuchitunnelsPython
290cudakC++
291cudovistePython
292cupsHaskell
293cursethedarknessC++
294curvyblocksPython
295cuttingbrowniesC++
296cuttingcornersC++
297daceydiceC++
298dailydivisionC++
299dancerecitalC++
300darknessC++
301dasblinkenlightsPython
302dasortC++
303dataC++
304deadendC++
305deadfractionPython
306deathstarC++
307deathtaxesHaskell
308debellatioC++
309debuggingC++
310dejavuPython
311delimitersoupPython
312deliveringC++
313deliveryC++
314destinationunknownC++
315detourC++
316dicebettingC++
317dicecupPython
318dicegamePython
319dickandjanePython
320dictionaryattackC++
321differentC++
322differentdistancesPython
323digicomp2C++
324digitdivisionC++
325digitsPython
326digitsumC++
327digitswapPython
328diplomacyC++
329dirtydrivingHaskell
330disgruntledjudgeC++
331displayPython
332distinctivecharacterC++
333divideby100Python
334divisibleC++
335divisorsC++
336dobraC++
337doggopherPython
338dominoes2C++
339dominosC++
340doodlingPython
341doormanPython
342downfallC++
343downtimePython
344dragonball1C++
345dragondroppedPython
346draughtsC++
347dreamC++
348dreamerPython
349drinkingsongHaskell
350drinkresponsiblyPython
351driverC++
352driversdilemmaOcaml
353drivinglanesC++
354drivingrangeC++
355drmmessagesPython
356droppingball2C++
357droppingdirectionsC++
358drunkvigenereOcaml
359dunglishPython
360dutyschedulerC++
361dvaputC++
362dvdsC++
363dvonizC++
364dyslectionaryPython
365earlywinterHaskell
366eastereggsC++
367easyascabC++
368easyprobabilityC++
369eatingeverythingC++
371eatingoutPython, Python
372ecoinsC++
373eenymeenyPython
374ekoC++
375electionPython
376eligibilityPython
377emergencyPython
378emplehPython
379emptyingbalticC++
380encodedmessagePython
381enemyterritoryC++
382engagingC++
383enlarginghashtablesC++
384enteringthetimeC++
385entertainmentboxC++
386enviousexponentsC++
387equationsPython
388equationsolverC++
389equilibriumC++
390equivalencesC++
391eraseHaskell
392errandsC++
393escapeplanC++
394esejPython
395espressobucksPython
396euclideantspC++
397euclidsgamePython
398eulerianpathC++
399eulersnumberPython
400europeantripC++
401eventplanningOcaml
402evilstrawPython
403exactlyelectricalOcaml
404examPython
405exchangeratesC++
406exofficioC++
407expandingrodsPython
408expeditiouscubingC++
409explosionC++
410factstonePython
411fair_divisionC++
412fakescoreboardC++
413faktorPython
414fallingC++
415falsesecurityOcaml
416familydagC++
417fareyC++
418fastfoodPython
419faultyrobotC++
420favourableC++
421fbiuniversalPython
422fencebowlingPython
423ferryloading3Ocaml
424ferryloading4Ocaml
425fibonaccicyclesC++
426fibtourC++
427figurinefiguresC++
428filipPython
429finalexamC++
430financialplanningC++
431findinglinesC++
432findpolyPython
433fire2C++
434fireflyC++
435firestationC++
436firetrucksareredC++
437fishmongersC++
438fizzbuzzPython
439flagquizPython
440fleaonachessboardC++
441flightC++
442flipfiveC++
443flippingcardsC++
444flippingpattiesHaskell
445floodingfieldsC++
446flowergardenC++
447flowersC++
448flowerytrailsC++
449flowfreeC++
450flowshopPython
451foldedmapC++
452foldingacubeC++
453fontC++
454foolingaroundC++
455forestforthetreesPython
456forestfruitsC++
457fractionPython
458frecklesC++
459freefoodPython
460freeweightsC++
461freighttrainC++
462fridayPython
463froggiePython
464froshweekC++
465froshweek2C++
466fruitbasketsC++
467frustratedqueueC++
468fulltankC++
469functionalfunPython
470fundamentalneighborsC++
471funhouseC++
472galacticC++
473gamenightC++
474gamerankPython
475gatheringinyorknewPython
476gcdsC++
477gcpcC++
478gearchangingHaskell
479gears_2C++
480generalchineseremainderC++
481geneticsearchC++
482geniusPython
483georgeC++
484geppettoC++
485getshortyC++
486gettingthroughC++
487glitchbotPython
488globalwarmingC++
489glyphrecognitionC++
490gmoC++
491gnollhypothesisPython
492godzillaC++
493goingdutchC++
494goingtoseedC++
495goldC++
496goldbach2C++
497golfbotC++
498golombrulersPython
499goodcoalitionC++
500goodmorningC++
501grandpaberniePython
502granicaC++
503grapevineC++
504grassC++
505grasshopperC++
506gravamenC++
507greatswercportoC++
508greedilyincreasingPython
509greetingcardsC++
510gridC++
511gridgameC++
512gridmstC++
513growlinggearsPython
514gruesomecaveC++
515guessPython
516guessinggamePython
517guessthedatastructureC++
518guessthenumbersC++
519haikuPython
520hailstoneHaskell
521hangingoutPython
522happyprimeHaskell
523harddrivePython
524hashingC++
525hauntedgraveyardC++
526haybalesPython
527heartrateOcaml
528heightPython
529heliocentricC++
531helloC++, Haskell
532helpPython
533helpaphdPython
534heritagePython
535hiddenPython
536hidingchickensC++
537hidingplacesC++
538hillnumbersC++
539hindexC++
540hnumbersC++
541hogwarts_2C++
542holeynqueensbatmanC++
543homeworkC++
544honeyPython
545honeyheistPython
546hoppersC++
547hopscotch_50C++
548horrorC++
549horrorfilmnightC++
550hothikePython
551houselawnPython
552houseofcardsPython
553howmanydigitsPython
554htooPython
555humancannonballC++
556hurricanedangerC++
557hydrasheadsC++
558hypercubePython
559iboardC++
560icpcteamselectionPython
561ignorePython
562iksC++
563illiteracyC++
564imageprocessingPython
565imperfectgpsC++
566importspaghettiC++
567includesortingHaskell
568incognitoPython
569increasingsubsequenceC++
570industrialspyC++
571infinite2darrayC++
572inflagrantedelictoC++
573inflationC++
574ingestionPython
575insertPython
576installingappsC++
577integerdivisionPython
578integerlistsC++
579interceptC++
580interestingintegersC++
581intergalacticbiddingPython
582intervalcoverC++
583invasionC++
584inventingC++
585inversefactorialPython
586inverteddeckPython
587irepeatmyselfPython
588ironcoalC++
589irrationaldivisionC++
590isithalloweenPython
591islandC++
592islandsC++
593islands3C++
594itcanbearrangedC++
595ivanaC++
596jabuke2C++
597jackpotPython
598jailbreakC++
599janitortroublesPython
600jetpackC++
601jewelryboxPython
602jobexpensesPython
603joggersC++
604joggingtrailsC++
605johnsstackC++
606joinstringsPython
607joylessgamePython
608judgingHaskell
609judgingmoosePython
610jugglingpatternsC++
611jughardPython
612jumpingmonkeyC++
613jumpingyoshiC++
614jupiterC++
615jurassicjigsawC++
616juryjeopardyPython
617justaminutePython
618justforsidekicksC++
619justpassingthroughC++
620kaleidoscopicpalindromesC++
621kartePython
622kattissquestC++
623kemija08Ocaml
624keyboardC++
625keyboardconcertC++
626keypadPython
627keytocryptoOcaml
628kinarowC++
629kingdomofantsC++
630kingofthewavesC++
631kingpinescapeC++
632kitchenC++
633kletvaC++
634knapsackC++
635knightjumpC++
636knightsearchC++
637knightsfenC++
638knigsoftheforestC++
639kuteviC++
640ladiceC++
641landlineC++
642landscapingC++
643lastfactorialdigitPython
644lawnmowerHaskell
645learningtocodeC++
646leftbeehindPython
647lektiraPython
648licensetolaunchPython
650limbo2Python, Python
651lindenmayorsystemPython
652linearrecurrenceC++
653lineupPython
654linijeC++
655listgameC++
656ljutnjaC++
657lockedtreasurePython
658loglandC++
659logo2C++
660longincsubseqC++
661longswapsPython
662loopycabdriversC++
664loorollsPython, Python
665loowaterC++
666lostinthewoodsC++
667lostisclosetolosePython
668lostmapC++
669lowC++
670loworderzerosPython
671luckynumberPython
672mafijaC++
673magic_sequenceC++
674magical3C++
675magicallightsC++
676mailboxPython
677makingpalindromesC++
678maliC++
679mallmaniaC++
680managingpackagingC++
681mancalaPython
682manhattanmorningsC++
683mapcolouringC++
684maptiles2Python
685marblestreeC++
686marchofpenguinsC++
687marioC++
688mastermindC++
689matchsticksPython
690mathworksheetPython
691matrixPython
692maxflowC++
693maximizingwinningsC++
694maximizingyourpayC++
695maximumrentC++
696mazemovementC++
697measurementOcaml
698megainversionsC++
699memorymatchPython
700meowfactorPython
701messagesPython
702millionairemadnessC++
703mincostmaxflowC++
704mincutC++
705minibattleshipC++
706minimumscalarPython
707minspantreeC++
708missingnumbersOcaml
709mixedbasearithmeticPython
710mjehuricPython
711mobilizationC++
712moduloPython
713modulodatastructuresC++
714molekuleC++
715moneyC++
716moneymattersC++
717monkC++
718moretrianglesC++
719mortgageC++
720moscowdreamHaskell
721mosquitoHaskell
722mountainbikingPython
723movie_collectionC++
724mububaC++
725muddyhikeC++
726multigramPython
727musicalchairsC++
728musicalnotationPython
729musicalscalesOcaml
730musicyourwayPython
731muzicariC++
732namesPython
733namethatpermutationPython
734narrowartgalleryC++
735nastyhacksHaskell
736natjecanjeC++
737natrijPython
738naturereserveC++
739neighborhoodwatchC++
740nesteddollsC++
741neutralgroundC++
742nikolaC++
743nineC++
744nineknightsC++
745ninepacksC++
746nizoviPython
747nonprimefactorsC++
748npuzzlePython
749ntnuorienteeringC++
750numberfunHaskell
751numbersetseasyC++
752numbersetshardC++
753oceancurrentsC++
754oddbinomPython
755oddgnomePython
756odditiesHaskell
757oddsPython
758officespaceC++
759oktalniPython
760olderbrotherC++
761onechickenPython
762onesC++
763ontrackC++
764openpitminingC++
765orchardPython
766ordersC++
767ornamentsPython
768othersidePython
769otporPython
770outofsortsC++
771ozljedaC++
772pachinkoprobabilityC++
773pachydermpeanutpackingPython
774pagelayoutC++
775paintingsPython
776pairingsocksC++
777palindromesubstringC++
778pandachessC++
779parketC++
780particlecollisionPython
781partygamePython
782pascalC++
783passingsecretsC++
784passwordPython
785pathtracingPython
786pearwiseC++
787peasoupPython
788pebblesolitaireC++
789pebblesolitaire_2C++
790peggamefortwoC++
791peragramsPython
792perfectpowersC++
793pericaC++
794periodicstringsPython
795permcodePython
796permutationdescentPython
797permutedarithmeticsequenceC++
798persistentPython
799pervasiveheartmonitorPython
800phonelistPython
801physicalmusicPython
802pianoC++
803pickupsticksC++
804piglatinPython
805pikemaneasyC++
806pikemanhardC++
807piperotationHaskell
808pivotC++
809pizzaC++
810planinaHaskell
811platformeC++
812playfairPython
813playgroundPython
814plotPython
815plowkingPython
816pointinpolygonC++
817pokemongogoC++
818pokerhandPython
819polishC++
820pollygoneC++
821polymul1C++
822polymul2C++
823poplavaPython
824porpoisesC++
825posterizePython
826powereggsPython
827powerstringsC++
828prerequisitesOcaml
829presidentialelectionsC++
830prettygoodcuberootPython
831primalrepresentationC++
832primaryarithmeticPython
833primematrixPython
834primepathPython
835primereductionC++
836primesC++
837primes2Python
838primesieveC++
839princeandprincessC++
840printingcostsPython
841pripremePython
842programC++
843programmingteamselectionC++
844programmingtutorsC++
845promotionsC++
846protectingthecollectionC++
847provincesandgoldPython
848prozorC++
849prsteniPython
850prvaHaskell
851pticeHaskell
852pubsC++
853purplerainC++
854pyramidsPython
855pyroC++
856qalyC++
857qanatC++
858quadrantPython
859queensHaskell
860r2Python
861raceC++
862rafflePython
863ragingriverC++
864railroad2Python
865rainbowroadraceC++
866rainfall2C++
867ratingproblemsHaskell
868ratingsC++
869rationalsequenceC++
870ratsPython
871reachableroadsC++
872reactivityC++
873recipesOcaml
874reconnaissanceC++
875rectangularspiralPython
876recursionrandfunC++
877redbluetreeC++
878redsocksPython
879reducedidnumbersC++
880remainderreminderC++
881researchproductivityindexPython
882resetoC++
883restaurantC++
884retributionC++
885reversebinaryHaskell
886reversingroadsC++
887rhymingPython
888ricochetrobotsC++
889ridofcoinsC++
890rijeciPython
891rimskiPython
892rings2Python
893riskC++
894roadtimesC++
895roberthoodC++
896robotmazeC++
897robotprotectionC++
898robotsonagridC++
899robotturtlesC++
900rockbandPython
901rockclimbingC++
902rockscissorspaperRust
903rollercoasterfunC++
904roman_holidaysPython
905romansHaskell
906roompaintingC++
907rootedsubtreesC++
908roundedbuttonsPython
909runningstepsPython
910safeC++
911safepassageC++
912satisfiabilityC++
913savingdaylightPython
914scenesC++
915scoreOcaml
916scrollingsignPython
917secretchamberPython
918secretsantaPython
919securitybadgeC++
920selectgroupPython
921selfsimilarstringsC++
922sellingspatulasC++
923sendmoremoneyC++
924sequenceHaskell
925sequencesC++
926setPython
927setiC++
928setstackC++
929settlers2C++
930sevenwondersHaskell
931sgcoinC++
932sheldonPython
933shiritoriPython
934shopaholicC++
935shoppingC++
936shoppingmallsC++
937shortestpath2C++
938shortestpath3C++
939shortsellC++
940shrineC++
941shufflingPython
943sidewayssortingHaskell, Python
944siluetaC++
945simC++
946simpleadditionPython
947simplicityPython
948simplificationC++
949sjecistaPython
950skenerPython
951skijumpingPython
952skocimisPython
953slalom2C++
954smallestmultiplePython
955smallscheduleC++
956smartphonePython
957smilPython
958snapperhardC++
959socialadvertisingC++
960sokOcaml
961solitaireC++
962sortPython
963sorttwonumbersPython
964soundC++
965sparklessevenC++
966speedC++
967speedlimitPython
968speedyescapeC++
969spiderC++
970spidermanC++
971splatPython
972sprocketscienceC++
973squaredealC++
974squarepegsC++
975squawkC++
976srednjiC++
977sretanPython
978stararrangementsHaskell
979starnotatreeC++
980stickysituationPython
981stockbrokerC++
982stockpricesC++
983stringmatchingC++
984stringmultimatchingC++
985studentskoC++
986subexpressionC++
987subseqhardC++
988substringswitcherooC++
989subwayplanningC++
990successionPython
991sudokuniqueC++
992suffixarrayreconstructionC++
993suffixsortingC++
994sumandproductC++
995sumsetsC++
996supercomputerC++
997suspensionbridgesPython
998svadaC++
999svemirC++
1000sylvesterC++
1001symmetricorderHaskell
1002synchronizinglistsC++
1003t9spellingPython
1004tajnaPython
1005targetpracticeC++
1006tarifaPython
1007tautologyC++
1008taxicabC++
1009taxingC++
1010teacherevaluationPython
1011temperaturePython
1012tequeC++
1013terracesC++
1014test2C++
1015tetrisPython
1016texassummersC++
1017textencryptionPython
1018thanosHaskell
1019thanostheheroC++
1020thebackslashproblemPython
1021thedealofthedayPython
1022thegrandadventureHaskell
1023thekingofthenorthC++
1024thelastproblemC++
1025thermostatPython
1026thesaurusC++
1027thinkingofanumberPython
1028thisaintyourgrandpascheckerboardPython
1029threedigitsPython
1030thrownsPython
1031ticketpricingC++
1032tictactoe2Python
1033tightC++
1034tightlypackedC++
1035tilesC++
1036timebombPython
1037timeloopHaskell
1038tiredterryPython
1039toiletPython
1040tomographyC++
1041torn2piecesPython
1042touchscreenkeyboardPython
1043touristsC++
1044toweringC++
1045toysC++
1046tractorC++
1047trafficPython
1048trainpassengersPython
1049trainsortingC++
1050tramPython
1051transportationC++
1052transportationplanningC++
1053treasureC++
1054treasuredivingC++
1055treasurehuntPython
1056treehousesC++
1057tricktreatC++
1058trikPython
1059tripPython
1060trip2007Python
1061tritilingPython
1062trollhuntPython
1063tugofwarC++
1064turtlemasterPython
1065twostonesHaskell
1066typoC++
1067ultraquicksortC++
1068umbraldecodingC++
1069undetectedC++
1070unicyclesC++
1071uniquediceC++
1072unitsC++
1073unlockpattern2C++
1074unusualdartsC++
1075upsanddownsofinvestingHaskell
1076urbandesignC++
1077uxuhulvotingC++
1078vauvauPython
1079veciC++
1080vegetablesC++
1081victorythroughsynergyPython
1082videospeedupPython
1083vindiagramsC++
1084virusC++
1085volimHaskell
1086volumeamplificationC++
1087votePython
1088vukC++
1089waifC++
1090walkforestC++
1091walkwayC++
1092wallsC++
1093walrusweightsC++
1094waterC++
1095watershedsC++
1096weatherC++
1097weddingC++
1098weightofwordsPython
1099welcomehardC++
1100wffnproofPython
1101whatsinitC++
1102wheelsPython
1103wherehaveyoubinC++
1104wheretoliveC++
1105whichbasePython
1106wifiC++
1107windowsPython
1108wipeyourwhiteboardsC++
1109wizardofoddsPython
1110woodensignsC++
1111wordcloudPython
1112wordcloudsC++
1113wordladder2C++
1114wordspinC++
1115workoutPython
1116workstationsC++
1117xentopiaC++
1118xyzzyC++
1119yinyangstonesHaskell
1120yodaPython
1121zagradeC++
1122zanzibarHaskell
1123zapisPython
1124zebrasocelotsC++
1125zipfslawPython
1126zipfsongHaskell
1127ziplineC++
1128znanstvenikC++

List of Virtual Judge Questions Solved

IndexQuestion TitleSolution
1Baekjoon-10363C++
2Baekjoon-7824C++
3HDU-1043C++
4LightOJ-1229C++
5UVA-10003C++
6UVA-10017C++
7UVA-10040C++
8UVA-10078C++
9UVA-10145C++
10UVA-10165C++
11UVA-10181C++
12UVA-10244C++
13UVA-10254Python
14UVA-10304C++
15UVA-10388C++
16UVA-10506C++
17UVA-10746C++
18UVA-10887C++
19UVA-10895C++
20UVA-11163C++
21UVA-11239C++
22UVA-11311C++
23UVA-11340C++
24UVA-11507C++
25UVA-11534C++
26UVA-11581C++
27UVA-120Python
28UVA-1203C++
29UVA-12049C++
30UVA-12150C++
31UVA-12157C++
32UVA-12696C++
33UVA-1304C++
34UVA-156C++
35UVA-1566C++
36UVA-1571C++
37UVA-1610C++
38UVA-1674C++
39UVA-1709C++
40UVA-254Python
41UVA-255C++
42UVA-348C++
43UVA-584C++
44UVA-588C++
45UVA-652C++
46UVALive-2577C++
47ZOJ-1190C++

List of Code Forces Questions Solved

IndexQuestion TitleSolution
1CF1848_E_Vika_and_Stone_SkippingC++
2CF1920_D_Array_RepetitionC++
3CF1923_C_Find_BC++
4CF1923_D_SlimesC++
5CF1935_C_Messenger_in_MACC++
6CF1937_A_Shuffle_PartyPython
7CF1937_B_Binary_PathC++
8CF1937_C_Bitwise_Operation_WizardC++
9CF1954_A_Painting_the_RibbonPython
10CF1954_B_Make_It_UglyPython
11CF1954_C_Long_MultiplicationPython
12CF1954_D_Colored_BallsC++
13CF1954_E_Chain_ReactionC++
14CF1957_A_StickogonPython
15CF1957_B_A_BIT_of_a_ConstructionPython
16CF1957_C_How_Does_the_Rook_MovePython
17CF1957_D_A_BIT_of_an_InequalityC++
18CF1966_A_Card_ExchangePython
19CF1966_B_Rectangle_FillingPython
20CF1966_C_Everything_NimPython
21CF1966_D_Missing_Subsequence_SumPython
22CF1970_B1_Exact_Neighbours_EasyPython
23CF1970_C1_Game_on_Tree_EasyPython
24CF1970_C2_Game_on_Tree_MediumC++
25CF1970_C3_Game_on_Tree_HardC++
26CF1970_E1_Trails_EasyC++
27CF1970_E2_Trails_MediumC++
28CF1970_E3_Trails_HardC++
29CF1970_G1_Min_Fund_Prison_EasyC++
30CF1970_G2_Min_Fund_Prison_MediumC++
31CF1971_F_Circle_PerimeterC++
32CF1971_G_XOURC++
33CF1971_H_±1C++
34CF1972_A_Contest_ProposalPython
35CF1972_B_Coin_GamesPython
36CF1972_C_Permutation_CountingC++
37CF1972_D1_Reverse_Card_Easy_VersionC++
38CF1973_A_Chess_For_ThreePython
39CF1973_B_Cat_Fox_and_the_Lonely_ArrayC++
40CF1973_C_Cat_Fox_and_Double_MaximumPython
41CF1974_C_Beautiful_Triple_PairsC++
42CF1974_D_Ingenuity_2Python
43CF1988_A_Split_the_MultisetPython
44CF1988_B_Make_MajorityPython
45CF1988_C_Increasing_Sequence_with_Fixed_ORC++
46CF1988_D_The_Omnipotent_Monster_KillerC++
47CF1988_E_Range_Minimum_SumC++
48CF1989_A_Catch_the_CoinPython
49CF1989_B_Substring_and_SubsequencePython
50CF1989_C_Two_MoviesPython
51CF1989_D_Smithing_SkillC++
52CF1990_A_Submission_BaitPython
53CF1990_B_Array_CraftPython
54CF1990_C_Mad_MAD_SumPython
55CF1990_D_Grid_PuzzlePython
56CF1993_A_Question_MarksPython
57CF1993_B_Parity_and_SumPython
58CF1993_C_Light_SwitchesC++
59CF1993_D_Med_imizeC++
60CF2004_A_Closest_PointPython
61CF2004_B_Game_with_DoorsPython
62CF2004_C_Splitting_ItemsPython
63CF2004_D_Colored_PortalsPython
64CF2004_E_Not_a_Nim_ProblemC++
65CF2007_C_Dora_and_CC++
66CF2014_A_Robin_HelpsPython
67CF2022_B_Kar_SalesmanC++
68CF2023_A_Concatenation_of_ArraysC++
69CF2023_B_SkippingC++
70CF2023_C_C_K_SC++
71CF2026_A_Perpendicular_SegmentsPython
72CF2026_B_Black_CellsPython
73CF2026_C_Action_FiguresC++
74CF2026_D_Sums_of_SegmentsC++
75CF2027_A_Rectangle_ArrangementPython
76CF2027_B_Stalin_SortPython
77CF2027_C_Add_ZerosC++
78CF2027_D1_The_Endspeaker_Easy_VersionC++
79CF2027_D2_The_Endspeaker_Hard_VersionC++
80CF2028_A_Alice_s_Adventures_in_ChessPython
81CF2028_B_Alice_s_Adventures_in_PermutingPython
82CF2028_C_Alice_s_Adventures_in_Cutting_CakeC++
83CF2028_D_Alice_s_Adventures_in_CardsC++
84CF2028_E_Alice_s_Adventures_in_the_Rabbit_HoleC++
85CF2029_A_SetPython
86CF2029_B_ReplacementPython
87CF2029_C_New_RatingC++
88CF2029_D_Cool_GraphC++
89CF2029_E_Common_GeneratorC++
90CF2031_A_Penchick_and_Modern_MonumentPython
91CF2031_B_Penchick_and_Satay_SticksPython
92CF2031_C_Penchick_and_BBQ_BunsPython
93CF2031_D_Penchick_and_Desert_RabbitC++
94CF2031_E_Penchick_and_Chloe_s_TreesC++
95CF2036_E_Reverse_the_RiversPython
96CF2036_F_XORificator_3000Python
97CF2043_C_Sums_on_SegmentsC++
98CF2043_D_Problem_about_GCDC++
99CF2051_G_SnakesC++
100CF2055_C_The_TrailC++
101CF2055_D_ScarecrowC++
102CF2056_A_Shape_PerimeterPython
103CF2056_B_Find_the_PermutationPython
104CF2056_C_Palindromic_SubsequencesPython
105CF2056_D_Unique_MedianC++
106CF2059_A_Milya_and_Two_ArraysPython
107CF2059_B_Cost_of_the_ArrayPython
108CF2060_A_FibonaccinessPython
109CF2060_B_Farmer_John_s_Card_GamePython
110CF2060_C_Game_of_MathletesPython
111CF2060_D_Subtract_Min_SortPython
112CF2060_E_Graph_CompositionC++
113CF2060_F_Multiplicative_ArraysC++
114CF2062_A_StringPython
115CF2062_B_ClockworkPython
116CF2062_C_Cirno_and_OperationsPython
117CF2062_D_Balanced_TreeC++
118CF2062_E1_The_Game_Easy_VersionC++
119CF2063_B_Subsequence_UpdateC++
120CF2063_C_Remove_Exactly_TwoC++
121CF2063_D_Game_With_TrianglesC++
122CF2064_B_Variety_is_DiscouragedC++
123CF2065_A_Skibidus_and_Amog_uPython
124CF2065_B_Skibidus_and_OhioPython
125CF2065_C_2_Skibidus_and_Fanum_Tax_hard_versionC++
126CF2065_D_Skibidus_and_SigmaC++
127CF2065_E_Skibidus_and_RizzPython
128CF2066_A_Object_IdentificationPython
129CF2066_B_White_MagicC++
130CF2066_C_Bitwise_SlidesC++
131CF2067_A_Adjacent_Digit_SumsPython
132CF2067_B_Two_Large_BagsC++
133CF2067_C_DevyatkinoC++
134CF2069_A_Was_there_an_ArrayPython
135CF2069_B_Set_of_StrangerC++
136CF2070_A_FizzBuzz_RemixedPython
137CF2070_B_Robot_ProgramC++
138CF2070_C_Limited_RepaintingC++
139CF2071_A_The_Play_Never_EndsPython
140CF2071_B_PerfectoPython
141CF2071_C_Trapmigiano_ReggianoC++
142CF2071_D_1_Infinite_Sequence_Easy_VersionC++
143CF2072_A_New_World_New_Me_New_ArrayPython
144CF2072_B_Having_Been_a_Treasurer_in_the_Past_I_Help_Goblins_DeceivePython
145CF2072_C_Creating_Keys_for_StORages_Has_Become_My_Main_SkillC++
146CF2074_A_Draw_a_SquarePython
147CF2074_B_The_Third_SidePython
148CF2074_C_XOR_and_TriangleC++
149CF2074_D_Counting_PointsC++
150CF2075_A_To_ZeroPython
151CF2075_B_Array_RecoloringPython
152CF2075_C_Two_ColorsC++
153CF2075_D_EqualizationC++
154CF2077_A_Breach_of_FaithPython
155CF2077_B_Finding_OR_SumPython
156CF2078_A_Final_VerdictPython
157CF2078_B_Vicious_LabyrinthPython
158CF2078_D_Scammy_Game_AdC++
159CF2082_A_Binary_MatrixC++
160CF2082_B_Floor_or_CeilC++
161CF2082_C_Math_DivisionC++
162CF2093_A_Ideal_GeneratorPython
163CF2093_B_Expensive_NumberPython
164CF2093_C_Simple_RepetitionPython
165CF2093_D_Skibidi_TablePython
166CF2093_E_Min_Max_MEXC++
167CF2093_F_Hackers_and_Neural_NetworksC++
168CF2093_G_Shorten_the_ArrayC++
169CF2096_A_Wonderful_SticksPython
170CF2096_B_Wonderful_GlovesPython
171CF2096_C_Wonderful_CityC++
172CF2096_D_Wonderful_LightbulbsPython
173CF2096_E_Wonderful_Teddy_BearsPython
174CF2096_F_Wonderful_ImpostorsC++
175CF2098_A_Vadim_s_CollectionPython
176CF2098_B_Sasha_and_the_Apartment_PurchasePython
177CF2098_C_Sports_BettingPython
178CF2104_A_Three_DecksPython
179CF2104_B_Move_to_the_EndPython
180CF2104_C_Card_GamePython
181CF2104_D_Array_and_GCDC++
182CF2104_E_Unpleasant_StringsC++
183CF2106_A_Dr_TCPython
184CF2106_B_St_ChromaPython
185CF2106_C_Cherry_BombPython
186CF2106_D_Flower_BoyC++
187CF2111_A_Energy_CrystalsPython
188CF2111_B_Fibonacci_CubesPython
189CF2111_C_Equal_ValuesPython
190CF2111_D_Creating_a_SchedulePython
191CF2111_E_Changing_the_StringC++
192CF2112_A_RacePython
193CF2112_B_Shrinking_ArrayPython
194CF2112_C_Coloring_GamePython
195CF2165_A_Cyclic_MergingC++
196CF2165_B_Marble_CouncilC++
197CF2165_C_Binary_WineC++

About

Solutions to some of the problems listed in Competitive Programming 4

Topics

Resources

Stars

60 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages