code I write for solutions to problems during icpc practice / related contests
C++ Java Python C D Assembly
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Sorry, we had to truncate this directory to 1,000 files. 77 entries were omitted from the list.
Failed to load latest commit information.
2014_na_qual
.gitignore
10004_bicoloring.cpp
10004_bicoloring.in
10007_counttrees.cpp
10008_what.cpp
10008_what.in
10010_waldorf.cpp
10010_waldorf.in
10013_superlongsums.in
10013_supersums.cpp
10014_simplecalc.cpp
10014_simplecalc.in
10018_rad.cpp
10018_rad.in
10019_funnymethod.in
10020_mincov.cpp
10020_mincov.in
10023_sqroot.in
10026_shoemaker.cpp
10026_shoemaker.in
10033_interpreter.cpp
10033_interpreter.in
10035_primarth.cpp
10035_primarth.in
10038_jolly.cpp
10038_jolly.in
10041_vito.cpp
10041_vito.in
10049_selfdescseq.cpp
10049_selfdescseq.in
10050_hartals.cpp
10050_hartals.in
10055_hashmat.cpp
10055_hashmat.in
10062_tellmethefreq.cpp
10062_tellmethefreq.in
10070_leapyearornot.cpp
10070_leapyearornot.in
10070_leapyearornot.py
10071_highschool.cpp
10071_highschool.in
10079_pizzacutting.cpp
10079_pizzacutting.in
10082_wertyu.cpp
10082_wertyu.in
10098_genperm.cpp
10098_genperm.in
100_3nplus1.cpp
100_3nplus1.in
10100_longestmatch.cpp
10100_longestmatch.in
10104_euclid.cpp
10104_euclid.in
10106_product.in
10107_median.cpp
10107_median.in
10110_light.cpp
10110_light.in
10114_loansome.cpp
10114_loansome.in
10127_ones.cpp
10127_ones.in
10131_biggersmarter.cpp
10131_biggersmarter.in
10132_filefrag.cpp
10132_filefrag.in
10137_trip.cpp
10137_trip.in
10139_factovisors.cpp
10139_factovisors.in
10141_rfp.cpp
10141_rfp.in
10142_ausvote.cpp
10142_ausvote.in
10170_hotel.cpp
10170_hotel.in
10174_bachelor.cpp
10174_bachelor.in
10176_oceandeep.cpp
10176_oceandeep.in
10188_autojudge.cpp
10188_autojudge.in
10190_dbnq.cpp
10190_dbnq.in
10191_nap.cpp
10191_nap.in
10193_love.cpp
10193_love.in
10195_roundknights.cpp
10195_roundknights.in
10196_checkthecheck.cpp
10196_checkthecheck.in
10198_counting.in
101_blocks.cpp
101_blocks.in
10200_primetime.cpp
10200_primetime.in
10205_stackemup.cpp
10205_stackemup.in
10212_lastnonzero.cpp
10212_lastnonzero.in
10220_bignums.in
10222_decodemad.cpp
10222_decodemad.in
10226_hardwood.cpp
10226_hardwood.in
10235_emirp.cpp
10235_emirp.in
10245_cp.cpp
10245_cp.in
10252_comperm.cpp
10252_comperm.in
10258_scoreboard.cpp
10258_scoreboard.in
10260_soundex.cpp
10260_soundex.in
10267_graph.cpp
10267_graph.in
10279_minesweeper.cpp
10279_minesweeper.in
10281_aspd.cpp
10281_aspd.in
10282_babelfish.cpp
10282_babelfish.in
10293_wordlenfreq.cpp
10293_wordlenfreq.in
10295_haypoints.cpp
10295_haypoints.in
102_ecobins.cpp
102_ecobins.in
10300_ecoprem.cpp
10300_ecoprem.in
10305_ordering.cpp
10305_ordering.in
10323_factkid.in
10324_0n1.cpp
10324_0n1.in
10327_flip.cpp
10327_flip.in
10334_raythrough.in
10338_mischchild.cpp
10338_mischchild.in
10341_solveit.cpp
10341_solveit.in
10344_23oo5.cpp
10344_23oo5.in
10346_smokes.cpp
10346_smokes.in
10360_ratattack.cpp
10360_ratattack.in
10370_aboveaverage.cpp
10370_aboveaverage.in
10374_election.cpp
10374_election.in
103_stacking.cpp
103_stacking.in
10405_longestsub.cpp
10405_longestsub.in
10409_diegame.cpp
10409_diegame.in
10424_lovecalc.cpp
10424_lovecalc.in
10432_polygonincircle.cpp
10432_polygonincircle.in
10450_wcn.cpp
10450_wcn.in
10464_bigreal.in
10469_tcontc.cpp
10469_tcontc.in
10473_simplebconv.cpp
10473_simplebconv.in
10474_marble.cpp
10474_marble.in
10487_closestsums.cpp
10487_closestsums.in
10490_azad.cpp
10490_azad.in
10494_child.in
10499_loj.cpp
10499_loj.in
10519_strange.in
10530_guessing.cpp
10530_guessing.in
10533_digitp.cpp
10533_digitp.in
10550_combolock.cpp
10551_remains.in
10579_fibnums.in
10583_ubiquitos.cpp
10583_ubiquitos.in
10591_happynum.cpp
10591_happynum.in
105_skyline.cpp
105_skyline.in
10608_friends.cpp
10608_friends.in
10611_playboychimp.cpp
10611_playboychimp.in
10646_whatcard.cpp
10646_whatcard.in
10659_slides.cpp
10659_slides.in
10665_diatribe.cpp
10665_diatribe.in
10679_lovestr.cpp
10679_lovestr.in
10684_jackpot.cpp
10684_jackpot.in
10685_nature.cpp
10685_nature.in
10686_SQFprob.cpp
10686_SQFprob.in
10696_f91.cpp
10696_f91.in
10703_freespots.cpp
10703_freespots.in
10773_backtomath.cpp
10773_backtomath.in
10776_dtc.cpp
10776_dtc.in
10784_diag.cpp
10784_diag.in
10789_primefrq.cpp
10789_primefrq.in
10800_notkindograph.cpp
10800_notkindograph.in
10849_bishop.cpp
10849_bishop.in
10854_numpaths.cpp
10854_numpaths.in
10855_rs.cpp
10855_rs.in
10862_connectcables.in
10864_predator.cpp
10864_predator.in
10865_brownies.cpp
10865_brownies.in
10872_hmt.cpp
10872_hmt.in
10878_decodetape.cpp
10878_decodetape.in
10879_coderefactor.cpp
10879_coderefactor.in
10880_cnr.cpp
10880_cnr.in
10894_savehridoy.cpp
10894_savehridoy.in
10896_plainatt.cpp
10896_plainatt.in
10898_combo.cpp
108_maxsum.cpp
108_maxsum.in
10903_rps.cpp
10903_rps.in
10905_childsgame.cpp
10905_childsgame.in
10911_quizteams.cpp
10911_quizteams.in
10919_prereqs.cpp
10919_prereqs.in
10921_telephone.cpp
10921_telephone.in
10922_2to9s.cpp
10922_2to9s.in
10924_primewords.cpp
10924_primewords.in
10925_krakovia.in
10931_parity.cpp
10931_parity.in
10935_throwingcards.cpp
10935_throwingcards.in
10940_throwcards2.cpp
10940_throwcards2.in
10945_mbear.cpp
10945_mbear.in
10946_whatfilled.cpp
10946_whatfilled.in
10963_swallow.cpp
10963_swallow.in
10970_chocolate.cpp
10970_chocolate.in
10978_magic.cpp
10978_magic.in
10992_ghost.in
11029_leadtrail.cpp
11029_leadtrail.in
11039_building.cpp
11039_building.in
11057_exactsum.cpp
11057_exactsum.in
11059_maxproduct.cpp
11059_maxproduct.in
11062_andysecond.cpp
11062_andysecond.in
11074_drawgrid.cpp
11074_drawgrid.in
11076_addagain.cpp
11076_addagain.in
11078_opencred.cpp
11078_opencred.in
11093_finishitup.cpp
11093_finishitup.in
11094_continents.cpp
11094_continents.in
11115_jack.in
11121_base-2.cpp
11121_base-2.in
11136_hoax.cpp
11136_hoax.in
11150_cola.cpp
11150_cola.in
11151_lp.cpp
11151_lp.in
11173_greycodes.cpp
11173_greycodes.in
11185_ternary.in
11192_grouprv.cpp
11192_grouprv.in
11203_ME.cpp
11203_ME.in
11203_randomtestgen.cpp
11203_testdata.in
11219_howold.in
11219_howold.py
11220_decodingmsg.cpp
11220_decodingmsg.in
11221_magicsqupal.cpp
11221_magicsqupal.in
11222_onlyI.cpp
11222_onlyI.in
11230_apt.cpp
11230_apt.in
11233_delideli.cpp
11233_delideli.in
11239_opensource.cpp
11239_opensource.in
11244_countstars.cpp
11244_countstars.in
1124_cj.cpp
1124_cj.in
11278_oht.cpp
11278_oht.in
11283_boggle.cpp
11283_boggle.in
11286_conform.cpp
11286_conform.in
11292_loowater.cpp
11292_loowater.in
112_treesumming.cpp
112_treesumming.in
11309_chaos.cpp
11309_chaos.in
11321_sortx3.cpp
11321_sortx3.in
11330_andyshoe.cpp
11330_andyshoe.in
11340_np.cpp
11340_np.in
11349_symmatrix.cpp
11353_diffkindsorting.cpp
11353_diffkindsorting.in
11362_phonelist.cpp
11362_phonelist.in
11364_parking.cpp
11364_parking.in
11369_shopaholic.cpp
11369_shopaholic.in
11371_numbernewbs.cpp
11371_numbernewbs.in
11384_dexter.cpp
11384_dexter.in
11385_davincicode.cpp
11385_davincicode.in
11389_busdriver.cpp
11398_base1.cpp
11398_base1.in
113_crypto.cpp
11412_digholes.cpp
11412_digholes.in
11417_gcd.cpp
11417_gcd.in
11448_crisis.in
11450_weddingshop.cpp
11450_weddingshop.in
11455_quadrangle.cpp
11455_quadrangle.in
11459_snl.cpp
11459_snl.in
11461_squarenums.cpp
11461_squarenums.in
11466_lpd.cpp
11466_lpd.in
11470_sqsums.cpp
11470_sqsums.in
11475_etop.cpp
11479_easiest.cpp
11479_easiest.in
11494_queen.cpp
11494_queen.in
11496_musicloop.cpp
11507_bbrprob.cpp
11507_bbrprob.in
11530_smstyping.cpp
11530_smstyping.in
11541_decoding.cpp
11541_decoding.in
11559_eventplan.cpp
11559_eventplan.in
11572_uniquesnowflake.cpp
11572_uniquesnowflake.in
11577_lf.cpp
11577_lf.in
11581_gridsuccs.cpp
11581_gridsuccs.in
11586_traintracks.cpp
11586_traintracks.in
11588_imgcoding.cpp
11588_imgcoding.in
11608_noprob.cpp
11614_etruscan.cpp
11614_etruscan.in
11629_ballot.cpp
11629_ballot.in
11636_helloworld.cpp
11636_helloworld.in
11650_mirror.in
11650_mirrorc.py
11661_burgertime.cpp
11661_burgertime.in
11677_alarm.in
11677_alarm.py
11678_cardexchange.cpp
11678_cardexchange.in
11679_subprime.cpp
11679_subprime.in
11683_laser.cpp
11683_laser.in
11687_digits.cpp
11687_digits.in
11689_sodaslurp.cpp
11689_sodaslurp.in
11713_abstractnms.cpp
11713_abstractnms.in
11714_blindsort.cpp
11714_blindsort.in
11716_df.cpp
11716_df.in
11723_roads.cpp
11723_roads.in
11734_bigteamssolve.cpp
11734_bigteamssolve.in
11742_social.cpp
11742_social.in
11743_cc.cpp
11743_cc.in
11777_automategrades.cpp
11777_automategrades.in
11805_bafana.cpp
11805_bafana.in
11817_tte.cpp
11817_tte.in
11821_highprecnum.in
11824_minland.cpp
11824_minland.in
11827_maxgcd.cpp
11827_maxgcd.in
11827_pseudoprime.in
11830_cr.cpp
11830_cr.in
11839_or.cpp
11839_or.in
11847_ctsb.cpp
11847_ctsb.in
11849_CD.cpp
11849_CD.in
11850_alaska.cpp
11850_alaska.in
11854_egypt.cpp
11854_egypt.in
1185_bignum.cpp
1185_bignum.in
11860_docana.cpp
11860_docana.in
11875_brick.cpp
11875_brick.in
11878_hc.cpp
11878_hc.in
11879_multof17.in
11917_dyoh.cpp
11917_dyoh.in
11926_multitask.cpp
11926_multitask.in
11933_splitnums.cpp
11933_splitnums.in
11936_lazy.cpp
11936_lazy.in
11946_codenum.cpp
11946_codenum.in
11956_bf.cpp
11956_bf.in
11956_bf_a.cpp
11965_extrasp.cpp
11965_extrasp.in
11984_thermal.cpp
11984_thermal.in
11988_brokeyboard.cpp
11991_easyprob.cpp
11991_easyprob.in
11995_datastruct.cpp
11995_datastruct.in
119_ggg.cpp
119_ggg.in
1200_adp.cpp
1200_adp.in
1203_argus.cpp
1203_argus.in
12049_prunelist.cpp
12049_prunelist.in
12060_aia.cpp
12060_aia.in
120_stacks.cpp
120_stacks.in
12100_printq.cpp
12100_printq.in
1210_sumconsecpn.cpp
1210_sumconsecpn.in
12136_married.cpp
12136_married.in
1213_sumofdiffprimes.cpp
1213_sumofdiffprimes.in
12149_feynman.cpp
12149_feynman.in
12150_polepos.cpp
12150_polepos.in
12157_tarrif.cpp
12157_tarrif.in
12207_yourqueue.cpp
12207_yourqueue.in
12208_howones.cpp
12208_howones.in
12250_langdetect.cpp
12250_langdetect.in
1225_digitcount.cpp
1225_digitcount.in
1226_numsprises.in
12279_emoogle.cpp
12279_emoogle.in
12289_ott.cpp
12289_ott.in
1230_modex.in
12356_armybuds.cpp
12356_armybuds.in
12372_packing.cpp
12372_packing.in
12376_learnlive.cpp
12376_learnlive.in
1237_ee.cpp
1237_ee.in
12398_numpuzz1.cpp
12398_numpuzz1.in
123_search.cpp
123_search.in
12403_save.cpp
12403_save.in
12405_scarecrow.cpp
12405_scarecrow.in
12416_excspcrmv.cpp
12416_excspcrmv.in
1241_jollybee.cpp
1241_jollybee.in
12455_bars.cpp
12455_bars.in
12468_zapping.cpp
12468_zapping.in
12478_gridname.cpp
12499_dumb.cpp
12499_dumb.in
12502_threefams.cpp
12502_threefams.in
12503_robotinstructions.cpp
12503_robotinstructions.in
12504_updatedict.cpp
12527_diffdig.cpp
12527_diffdig.in
12541_birthdates.cpp
12541_birthdates.in
12554_happybday.cpp
12554_happybday.in
12555_babyme.cpp
12555_babyme.in
12556_perimidpoint.cpp
12556_perimidpoint.in
12571_brosis.cpp
12571_brosis.in
12576_loopy.cpp
12576_loopy.in
12577_hajj.cpp
12577_hajj.in
12578_10_6_2.cpp
12578_10_6_2.in
12583_memover.cpp
12583_memover.in
12592_slogan.cpp
12592_slogan.in
1260_sales.cpp
1260_sales.in
12626_margarita.cpp
12626_margarita.in
12663_highlowbridge.cpp
12663_highlowbridge.in
12665_jokingfermat.cpp
12665_jokingfermat.in
12667_lb.cpp
12667_lb.in
12787_lookingglass.cpp
12787_lookingglass.in
12798_sbc.cpp
12798_sbc.in
12802_gift.cpp
12802_gift.in
128_crc.cpp
12952_tridu.cpp
12952_tridu.in
136_ugnum.cpp
136_ugnum.py
138_street.cpp
140_bandwith.cpp
140_bandwith.in
143_orchard.in
146_idcodes.cpp
146_idcodes.in
147_dollars.cpp
147_dollars.in
156_ananagrams.cpp
156_ananagrams.in
1585_score.cpp
1585_score.in
1604_cep.cpp
1604_cep.in
160_factsandfacts.cpp
160_factsandfacts.in
161_trafficlights.cpp
161_trafficlights.in
195_anagram.cpp
195_anagram.in
2014icpc_probK.cpp
2014icpc_probK.in
227_sqpuz.cpp
227_sqpuz.in
231_catcher.cpp
231_catcher.in
232_crossword.cpp
232_crossword.in
245_uncompress.cpp
245_uncompress.in
256_quirksomesquares.cpp
256_quirksomesquares.in
264_cantor.cpp
264_cantor.in
278_chess.cpp
278_chess.in
294_divisors.cpp
294_divisors.in
299_trainswap.cpp
299_trainswap.in
305_Joseph.cpp
305_Joseph.in
306_cipher.cpp
323_jurycomp.cpp
323_jurycomp.in
324_factfreq.in
325_pascal.in
340_mastermindhints.cpp
340_mastermindhints.in
343_baseisthis.cpp
343_baseisthis.in
350_prn.cpp
353_peskypalindromes.cpp
353_peskypalindromes.in
356_pegsnholes.cpp
356_pegsnholes.in
357_countways.cpp
357_countways.in
362_countdown.cpp
362_countdown.in
369_combos.in
371_ackermann.cpp
371_ackermann.in
374_bigmod.in
382_perfection.cpp
382_perfection.in
389_basicspeak.in
394_mapmaker.cpp
394_mapmaker.in
400_unixls.cpp
400_unixls.in
401_palindromes.cpp
401_palindromes.in
406_primecuts.cpp
406_primecuts.in
409_excuses.cpp
409_excuses.in
410_sb.cpp
410_sb.in
414_merchined.cpp
414_merchined.in
417_wordindex.cpp
417_wordindex.in
422_wordsearchwonder.cpp
422_wordsearchwonder.in
434_matty.cpp
434_matty.in
438_circum.cpp
438_circum.in
441_lotto.cpp
441_lotto.in
443_humnum.cpp
443_humnum.in
444_encanddec.cpp
444_encanddec.in
445_mazes.cpp
445_mazes.in
446_kibbles.in
455_periodic.cpp
455_periodic.in
458_decoder.cpp
458_decoder.in
459_graphcon.cpp
459_graphcon.in
462_bridge.cpp
462_bridge.in
465_overflow.in
466_mirmir.cpp
466_mirmir.in
467_synch.cpp
467_synch.in
468_keytosucc.cpp
468_keytosucc.in
476_rect.cpp
476_rect.in
477_rectandcirc.cpp
477_rectandcirc.in
478_rct.cpp
478_rct.in
482_permarr.cpp
482_permarr.in
483_scramble.cpp
483_scramble.in
484_redundant.cpp
484_redundant.in
486_engnumtrans.cpp
486_engnumtrans.in
489_hangman.cpp
489_hangman.in
490_rotsents.cpp
490_rotsents.in
495_fibfreeze.in
496_simplysubsets.cpp
496_simplysubsets.in
507_jill.cpp
507_jill.in
514_rails.cpp
514_rails.in
524_prp.cpp
524_prp.in
538_balancing.cpp
538_balancing.in
540_teamqueue.cpp
540_teamqueue.in
541_errr.cpp
541_errr.in
543_goldbach.cpp
543_goldbach.in
562_divcoins.cpp
562_divcoins.in
568_facts.in
573_snail.cpp
573_snail.in
575_skewbin.cpp
575_skewbin.in
576_haiku.cpp
576_haiku.in
579_clockhands.cpp
579_clockhands.in
583_primefacts.cpp
583_primefacts.in
588_vidsurv.cpp
588_vidsurv.in
591_bob.cpp
591_bob.in
594_endian.cpp
594_endian.in
608_counterfeit.cpp
608_counterfeit.in
612_dnasorting.cpp
612_dnasorting.in
612_dnasorting_a.cpp
615_treetest.cpp
615_treetest.in
616_coconuts.cpp
616_coconuts.in
619_numerically.in
623_500fact.in
624_cd.cpp
624_cd.in
628_passwords.cpp
628_passwords.in
636_squares.cpp
636_squares.in
637_booklet.in
637_booklet.py
638_rectangles.cpp
638_rectangles.in
639_rooked.cpp
639_rooked.in
640_selfnum.cpp
641_untwist.cpp
641_untwist.in
642_wordamalg.cpp
642_wordamalg.in
642_wordamalg_hash.cpp
644_immediatedecode.cpp
644_immediatedecode.in
651_deck.cpp
651_deck.in
661_blownfuses.cpp
661_blownfuses.in
665_falsecoins.cpp
673_parens.cpp
673_parens.in
674_coinchange.cpp
674_coinchange.in
686_goldbach2.cpp
686_goldbach2.in
694_collatz.cpp
694_collatz.in
706_lcdisplay.cpp
706_lcdisplay.in
711_dividingup.cpp
711_dividingup.in
713_reverseadd.in
722_lakes.cpp
722_lakes.in
725_division.cpp
725_division.in
727_equation.cpp
727_equation.in
729_hamming.cpp
729_hamming.in
739_soundex.cpp
739_soundex.in
740_baudot.cpp
740_baudot.in
748_exponentiation.in
755_4873279.cpp
755_4873279.in
782_contour.cpp
782_contour.in
784_mazeexplore.cpp
784_mazeexplore.in
787_maxprod.cpp
787_maxprod.in
793_netcons.cpp
793_netcons.in
855_lunch.cpp
855_lunch.in
865_subcypher.cpp
865_subcypher.in
871_blob.cpp
871_blob.in
886_NED.cpp
886_NED.in
895_wp.cpp
895_wp.in
902_passsearch.cpp
902_passsearch.in
906_relateneighbor.cpp
906_relateneighbor.in
913_joana.cpp
913_joana.in
920_sunny.cpp
920_sunny.in
941_permutations.cpp
941_permutations.in
948_fibbase.cpp
948_fibbase.in
978_lemmings.cpp
978_lemmings.in
991_ss.cpp
991_ss.in
993_pod.cpp
993_pod.in
CTemplate.c
CppTemplate.cpp
LICENSE.txt
PyTemplate.py
README
TeXquotes.cpp
acuroman.cpp
addall-in
addall.cpp
agesort.cpp
agesort.in
allinall-in
allinall.cpp
andysfirst.cpp
andysfirst.in
armystrength.cpp
armystrength.in
base2palindromes.cpp
base2palindromes.in
baseisthis_343.java
basicspeak_389.java
beatspread.cpp
beatspread.in
bigmod_374.java
bignums_10220.java
bigreal_10464.java
bingo.cpp
bingo.in
carmichael-in
carmichael.c
carmichael.cpp
child_10494.java
combos_369.java
concab_10862.java
connectfour-in
connectfour.java
connectfour_Deloitte_6.java
costcut.cpp