From 79c92789c2ad53012ae792f5b0c104049331a121 Mon Sep 17 00:00:00 2001 From: Lea Date: Mon, 4 Dec 2023 10:49:52 +0100 Subject: [PATCH] reorganise workspace --- Cargo.toml | 2 +- day_1-2/input.txt | 1000 ------------------------- {day_1-1 => day_1}/input.txt | 0 {day_1-1 => day_1/part_1}/Cargo.toml | 0 {day_1-1 => day_1/part_1}/src/main.rs | 2 +- {day_1-2 => day_1/part_2}/Cargo.toml | 0 {day_1-2 => day_1/part_2}/src/main.rs | 2 +- day_2-2/input.txt | 100 --- {day_2-1 => day_2}/input.txt | 0 {day_2-1 => day_2/part_1}/Cargo.toml | 0 {day_2-1 => day_2/part_1}/src/main.rs | 2 +- {day_2-2 => day_2/part_2}/Cargo.toml | 0 {day_2-2 => day_2/part_2}/src/main.rs | 2 +- day_3-2/input.txt | 140 ---- {day_3-1 => day_3}/input.txt | 0 {day_3-1 => day_3/part_1}/Cargo.toml | 0 {day_3-1 => day_3/part_1}/src/main.rs | 2 +- {day_3-2 => day_3/part_2}/Cargo.toml | 0 {day_3-2 => day_3/part_2}/src/main.rs | 2 +- day_4-2/input.txt | 219 ------ {day_4-1 => day_4}/input.txt | 0 {day_4-1 => day_4/part_1}/Cargo.toml | 0 {day_4-1 => day_4/part_1}/src/main.rs | 2 +- {day_4-2 => day_4/part_2}/Cargo.toml | 0 {day_4-2 => day_4/part_2}/src/main.rs | 2 +- 25 files changed, 9 insertions(+), 1468 deletions(-) delete mode 100644 day_1-2/input.txt rename {day_1-1 => day_1}/input.txt (100%) rename {day_1-1 => day_1/part_1}/Cargo.toml (100%) rename {day_1-1 => day_1/part_1}/src/main.rs (91%) rename {day_1-2 => day_1/part_2}/Cargo.toml (100%) rename {day_1-2 => day_1/part_2}/src/main.rs (96%) delete mode 100644 day_2-2/input.txt rename {day_2-1 => day_2}/input.txt (100%) rename {day_2-1 => day_2/part_1}/Cargo.toml (100%) rename {day_2-1 => day_2/part_1}/src/main.rs (95%) rename {day_2-2 => day_2/part_2}/Cargo.toml (100%) rename {day_2-2 => day_2/part_2}/src/main.rs (94%) delete mode 100644 day_3-2/input.txt rename {day_3-1 => day_3}/input.txt (100%) rename {day_3-1 => day_3/part_1}/Cargo.toml (100%) rename {day_3-1 => day_3/part_1}/src/main.rs (97%) rename {day_3-2 => day_3/part_2}/Cargo.toml (100%) rename {day_3-2 => day_3/part_2}/src/main.rs (97%) delete mode 100644 day_4-2/input.txt rename {day_4-1 => day_4}/input.txt (100%) rename {day_4-1 => day_4/part_1}/Cargo.toml (100%) rename {day_4-1 => day_4/part_1}/src/main.rs (93%) rename {day_4-2 => day_4/part_2}/Cargo.toml (100%) rename {day_4-2 => day_4/part_2}/src/main.rs (94%) diff --git a/Cargo.toml b/Cargo.toml index be41a99..a945283 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,5 @@ resolver = "2" members = [ - "day_1-1", "day_1-2", "day_2-1", "day_2-2", "day_3-1", "day_3-2", "day_4-1", "day_4-2", + "day_*/*", ] diff --git a/day_1-2/input.txt b/day_1-2/input.txt deleted file mode 100644 index 2fae9ac..0000000 --- a/day_1-2/input.txt +++ /dev/null @@ -1,1000 +0,0 @@ -9eightone -hczsqfour3nxm5seven4 -9twopjqkghmbone -rhrfthv886vflthreeztvzs -tlbtwo62five -ninetwonine234nvtlzxzczx -28sevenseven -2sevensxszqdhjg2threexzjj3 -2fvq -781dk97eight26 -plfrsjtbl6 -sixglj13 -b3seven6817gjpcxseven -3fivenlqcbszfoursixfive6sixfb -zfxbzhczcx9eightwockk -threedssqrlk2qnpkzpkdddt -three67fourkbrlkf7mtbjprrth2 -seven3oneightp -31three -3894sevenfourfour -3ghmqlnine -7nine5zplh -3three9 -ff6dhvzmdrgt -3one3four -fourvptdnbpqcxktwoone4oneone -d6 -4kthx2 -ktjvrmdjf27five8one -94gkvkghfjqpsix -4gzstfpbqblqkxqrvd -eight1nine -8zgpptkqjdglpkssbpgzmn85 -sixpmfjrdmcj76 -six97 -ninesxs7 -one5lvxpfbnlfq -jninepzpgtzq7four5 -fourvjjrttlvdtfour8qxdvlg22two -7pqqdrrvcmvbr8nine57 -gvsdldqqxtjtsnnh147hxfour -5nnph1three -fkfzrdjvmnv9onemhlsjzrmxzzjfourjkvvgn -ggxvcpfxlpjnbtmp3onecmgr -three8rjm2 -88424four1 -jkgmcm7four63three -9twotwo3 -skzzsfvhnine5dgzvdz -eight71l1gthree -shfrsdsgpsfpqgflvhdhsmlxvprqrplpmznfive3224 -2536sevensevenmqtrkzlfqkgp -xnmfive8foursixsix8zjlczq -7threekthree -hcjeightone84qfjqkxxh9 -lnzkqfzmxonefourqsplvj6qthkx4fourpvrh -76onejxthllvxrn82lddxx86 -5mdgxvpseveneightkxltknlz -3sixnfourfourkdpfrgdsjhseventhree -two72 -1781lcxvgz1sixrlxtdhgj -three2kxrhnvkrsv9 -1bklbbkdh2sevenjkcckrkhm -4txdqlj2qjjxxk -zndcdgninethreekdspzsgf5ninetdx -28hkvnlxeight -rntmdthreeone7sixprqdtbsqs12 -fourqgbkxdj9eightthree -eightntrlqffxzjjqrxvthree7eight -threefourxtwo4six2 -nineeightptzqqqlfndtnq44dfhgnzbpjpkkjfkvseight -three8three -9mpjm -twofive4xvxvhhfmqnfqtx3threetln -8zpjkjmdjdclmlblsrqplh -ninethree6seven9pqdbqll5xncgrvp -ninebqczdbvshrsrlfiveonexjfdmxh1three -lppfqnkgzpbc1nine6ninefninepgspdhvjtk -7rbpjrhhrk -nine6fourbztvbhpldcjs2vzvfxhfthsjlsvchfdftfive -qthreegrq7sixvsrtztppnthree2five -nvsvcds67seven6nine -zgttjndqc34 -hdbr6jdknllngzdsevenpphrbdh -jsnm7 -rmcbzk4sevennine12seven -pdhzhfsvnbsbphcpfsbqceightmcqhxtgnine9six -3three2eightsevenkrkhmsttxsix41 -5fournqxkbzthree -one6four4 -2gfslqgszddk3crxtcv4njqn -fourbzmcklqrtp3tgxcks -vfsqvpjl7 -6zkmkm42hjrxlbjsixfoursixmbzsmm -1mgmhtsjkfhgbrxcqlbfb -5fiveeight8 -fourfourmcssix6two491 -6sixznqcronetrklkcmj -ninefive1twothreenbjz6 -threeeightjmvvbbmpxkcb2six7 -hbgxxnthcrfndrncqseven2 -nine6twomlbkcgdfnjninetwoeight -37 -878fivecxpdrbggkfktlghnnprghksz1 -pzpcpfour4nine3mxcfcscs8one -cxklt1eight -eightfivegxblrtcjgbdfourfsczgvm1pqpjz -6eight2nbzbsqvdm9sixeight -ftwone6nine686php -16fivesxmpmkfzf -vfmrtfhsrkpxkg897 -ksix77tzcmhbmnlqone -hdpjfive4two7eightninexjmtxx -sevenxcbbvccjtwo7rjdqmmtwossmqdz -4791 -1dxddjrgeightonenlkrpffqtwofive -qzjksevenninelsbvlczkdglgtlglcrfour6 -66smvxndcrb -3mmthree -291pbztnnmc -oneeight32zzmsc -sfnpmgh5 -4jtnlvgns4bpqbjteightfive -fiveeightnine19mtxstlf -sixrdzqlvndv71 -two2fourthreeqrtkvfqx -nine5threeseven -three6gt8vv1 -threecvrctmlsbgv8one48eighttwo -none1hzlrptbxxh9clltwovnqxt -37svfrkmzndz -1snnmlmpgnine6gkxp9 -mxdspkhrgktmssk6 -vp3ninebqsevensevenpdlgldrrsixeight -ninedvj637seven -fivethree5eightseven6 -one6gzb9onesix8seven -6fivexlnkmljfjfxpzljctwofour -qsrkpdfourtmsmxcbq729lkkjndgvsv -six6seven2seven6 -r9sstthc7kfhjfouronethree -5threelfgmxk262 -pvfrx7one -eightxnrmtjfcrzmflzjffone5htnine -8three37psix5 -8nine1onetrhttvqfour393 -dbteightwobqbjzm4sldhhsix4 -3nphxlsfbjrstkzcsevenfivetbplknqmng -fcctqjdtfgshjflnn82fivektzlvhm -gdznbc758eight3twothree -d9foureight6threencfgfivectl -18xrgdprcvxstdonetwokllvznxffiveseven -6vdtnrr -5qmnmqbs89 -onellnghcl4 -six33 -9rfrqkjpbonelfqcpcvrqonesix -four3brgjgdfs5ckccklxf147frfflvkvbf -one6fourznsnzrdzql -jkbzdjdnfh775 -1five1ssrmqpkpjsevenonertszt -vrn3eight -three3398threenksgf8two -5jptbc -9tfzqlqc7threemh71 -doneightfour1 -7nine9sevensixkcstwo -eight42threefourvjfflgjpsix8 -nznsgzzbrpgphpfourzs72hfsixeight -ninesix3 -rzp3kmjnbvjfbxrqftvjbckqxgh9fournine -5srpnghlpgrleightwoc -dfjsshvnqdbzttbmeighttwoonedvvnt4eight -5eightcqtwoninehxmspsdglqkmttwo5 -ckhgxqvm6 -twoonec3threenine17 -bptqceightcvjxzngrsrhdvzvxhl8 -9sevenrkchssgltgthreetfthreeeight5 -5four1five4hqfournine -81f9sevenjfgzjlbvzb9eight -sixhscsfhtls58 -kbsrhhfjktwo6vksix6five -f96xhv -5seven7slxxbsjqktseven -eighteightvvmdsknbfivegx82fvsnkkx -2ztmbkmtmcdp4mnpfive2ckdlzk -seven5prxngljdckzpdjttcjninenineseven1 -lxk24threekcftttdhg -jjplbxkhxdninethzb12nine -69gxmjk -74vqnkxjmljtgdr -six5mqtblgxddbkjczzv3 -nine98pflpm3qfrssixtwonttbg -ktwoone61fourcnhl -onekvvzbfvx6 -1gdsflnnssixrtnvlninefour9nxknine -6vxdfblmtr32bzftmnsneightzbtcshp -bpk1prxsj -9fivefivercfd8 -svvlv3onepcrzrmmhvcjzxjlhznine -zqffqvjdt5nine -fqkhlcfhmmm4 -onetwo7 -nine37sevenninefive -five3eight -8onesctsrjrbfourfourxrckjkbsmhpsmlj1 -2foureightxcfnfs6 -2three9 -68onenjdjz3sevenfllzrxbmfonefvxrxs -qkteightmss87khseightninetwo -6tvpxrjtwo399eightone -xsvdctmbhd3gtqxlkjkhf8 -qkxteight398vcbpgjz83 -npkqpeight79 -1lzqlvqzvvl -ptk4dzfhhmxbqkeightninexsgjg3scgtjcxjfd -5six8fivekrvkgsl7 -2s -1322kth3 -9twoone4oneseven -9fxnckqrmfive -8xvkkzzkv48 -77one79seven2four -ninetwo42 -vjdcxtpmbnineeight2 -ninetqsqdztthree96kkqzrqqsone -brcbcqjdqzninetwodhxnbmppm1 -phsflcvsixqpgtqbpftz792tznzxfqnp -goneight5eightfourbgjbl244 -8jpcvzxmchseven59eight65two -vmjkgvnmbh63v -gmvp7qhlsqqn5oneeight -tgjprthree31fourdvs -vkssixseven1mksmt3eight -lqcfpbt2seventwo -5zxjk1twopsrxpj1sixgjqbpzg -vqp2threenktcrcnqreightfourtpqjrpnxeightnine -318znqfivergd -six92npqlvqpdmninethree2six -dcsbjdfzthreelcrfmxzfjg18sevenqq -eightsfdpdrp32two2zgkrmdbbrkdxbkpb -8fournfngp9twotwo6three -8nineplmkgqxkr373 -tkdctwo2bcknsclmm -7threeeight83gnffnnvvmmfives8 -1cndhmeightjh8qnfhqnnbvbsrpvnbndqvxqd -fivemddsffzmchtwo57 -two552ln9vrxzclqfckdzdblseight -xbgtwone6hbhbhzqpvtt2jjjlcmbjrdeightnine -1rshxbpeight3xhgb -nine7slhsxqqs6threenine -4one72b -vqjdptqtvbksghfqsninesix9 -vgrdszz2gstfmxtt3 -1three6twoxqrhlrprvp47 -pjjhqxmmx199vdtsvkl3mmktp -qrxqsqxklr6sixonextrbvsvbpxbqkmfmqh23 -5rvmcsfkgfour5hvrhfbcklr -lfbhcszfjhdcmdnfgkjmlzggcxvqxmsznqhhmfourrqkhdzzqnn9twonezlp -txp8cxftvdnb9three4 -3twothree -9kqltlbdbv5jxfqh9mqsrfnccseven -five74 -flqp55qconeeightthree -twoeightsevenone9 -six627khhnzhjxddf4sixlspfmxtpx -d3six -314rcflrzpt6 -oneone7 -srbvrkhdz9sixtwo3fivefpttzvs9one -9pfs -697foursixgdfhdrxtwoninehgdznj -five87 -5threeeight6fzrthree -onecdtfnrljxdninethree4fivenine4qmcqtv -2threeone92fzh -fivesevenrn8 -1tjctrxfbdvtwonekkb -jjcpppxztwo5 -eight4gbqxj4seven -three4nine -3nine2one -eight94 -8xcseven8pjp36 -ninefour94 -5five2 -3ninek -qndtpeight2 -kng8sevenpt -6eightpthcstdvfchnszdlmkmtxndbptpm -twofourthreesevennqcdnvmxgxhbfb6llqgnqn -2gtbpdqj8ninec -715threefour -onebtshxmks8sixspzgdnfkrtljmg5 -jhpfgbvl1dccvsbzknteight5chccclvvczfiveddzx -seveneightfour3three4one7six -75rzsxmnhcn -xh2 -dsvqrsix1nine -6nfknvbxlfzbn7sixsix -psjspjfp7fbhzldkjrjzgkmjqzpc -trzpxxtpxb5onethqjpxgghbkbjqrrjtninetwo -threeghgttkkjqjblld8mlngjtdzone -grmjf4fivesix -xlxfzcrvfvfkjvjprstlxrxndjx7kr2 -ldnspmtwo6bnxrvggp8pjgktbtmjc3 -gvj32 -sixnptnlsmxxrfive48vmrmseven -qrmc1rgmck -three3jpvqpsxqfour -one8dkdhplflcl83twovpkfmzh -beightwoxtjkxzfcqj9four -fivetwo25seven9stznfdjng -8nine6 -seven1six7 -69hkzgmfljnx9three -sevensevenqgoneblnq9 -79one3mqnmonexhnkvphbgcvjzzrvlmh -threezqnjvrpxhssklcpltwofoursix4seven -53jntjrfdbf7tmtjmsqhxsix -5rdfnnmnltwo -35gzm -hbgdptzxd55threenljvkcreighteightnbrlhgdtshtqvtzd -46onedpxdfgjpl -prl91917 -sixbgfjvnqhcqninetwo1one8seven -tkcvr56hh -bxqcqlsevenrzgnrfzz2grfqh2dgzlz -fiveonevlhmmkrcsmzfdb5lbxrfivetwo -nineseven4 -threebrgzvzhbk8cbrkkpmgv2 -clzkgsxrmnsqvvhfd55seven9three -nplbth9cfzjqd6ggone -9db -rbnqzbsmdsixrmnqqdgmx1hx -3xtwo9nine62 -6fvhbdfgfjsldtlvln4five6 -5jc5 -sevenjponethree8seven -eight92rfh4nine1jtwooneightb -qtzninetrnc32three3six -fourhhlztg3foursix9stv -seventqqgj81vvtc1five -8nineoneightg -twomtwo5rncmsr -fournine7rhggqjthreetwoseven -eight6qgnlxjssqqdlv1tlsxcpdbffxmjpptcpcdpzxzlqqtk -ggdvhdfive6 -4bdfmbqthreeldmthreetwolntnbgvlldvszplfxpsdslqlh -nine1five -38fkd8z -5twonmp5fivepmrkfhcgxbcpbjksxqvseven -mjxjzfour3cdhmzbgvqtqxtdfivethree7cb -nine9xrpsqhtftwothreesevennncsdlclttd -6bfndjktxdtbgsgcncqxrqdrs3 -xvcgbgsevenfive6dpceight -jhzonekvqsmtpsgbsrjs8six -lbxlcdzptwothree5199threepxln -two1rktj1eightqppcfdlm2 -336 -446four6seven -threefiveone3hdxkgvdvtwo -2klvktzjps4eightninehhmcdkrbtddclnfour -fivethreejqsjhfd1 -qtgscf1424sevenfour -eight2791sdvjbbt -4one1qhlglzzpkkvtkfivegrjbhpz11 -eighttwodgqrlsfive24jldfhpx -518three73jxfour -four1six5sevennjcxj3 -1k -8seven29 -7xpgfourcskxhftsfnzzr -z16onethreenine -phtqgpdkqzd8 -9tseventhree8tbkbpkzlcs -7nhh7four -7three1xrtcrxpnmk6djzktl -489onenpbtghbv7 -6eightwogd -2eight4hmjzchninejqjnnrrg -kvpffsbghsnzzzlbhkkh3nine -ninethreefour1nld -1four36cjsscrbnv6qnlfivefhrd -3sixone -158hnljkbtrdx -fseventwoeight64 -threeone3tmjntbxzninefives -cqkcltng2nnine5sbmqfj -seven6two1nzbonezn -76onetkgbgdnnff -43threes -lkgncsjkgklnslrmvsevenseven6nine -317ps7clxzs -zmfoneightvxbchjhrzmqvxmkkbfgxnine11fnshxqrcqlkrfb -6sixnine3 -1qttpkjghbr3nine -six6fourfour -eightqfpdlppsjpzjfive7 -67sevenlrqkzcsfvmrsnjpnkt2nxnsfvbn -threethreetnmhkdfive9sfxzdjcdm -nineone33tmgbcflbkgcnjdxk -seven9lmjfbfvcjlfskrm5sevenfour -tx4one8qsrxkxztpseven97 -mgsdjkntwopnvzrpmhgtwoxpskmlnsd7 -588 -4sevenmjqvqnrsixtncnfhlkmppqlxvhzhjkgd9eight -5jgqvm -onefivefour92 -xjbkceight3ctkdndmsh91 -2fcncvrvqfb2bkzgnt8seven7 -nggzzfgqfjrdbsjz7 -4nine5two5five6 -fivefivebzldqdgfsixeightfoursixthree7 -2xqxgg2three8vpvfcphxvthreegprqsjlfeightwogd -nine63 -qoneightlndfive3nine -lbcnltpbgthreefiveb8 -lqvrsjdgnseven83 -7shbfourffjgvpqxeight -3rdxmr4vk7 -36three -1qmvvhqpthtlzq1gmqtqm -dvfctxszmqkpzj2812 -5rnzcjpcxgc2four -twonineone5zbxsrcgndfour -86threeonefourninezcfghkqthrrh -5two1gnhsgzhvbb -xsix1 -xgvjqqqggsix6four -fiveonenineone4drmvcg6 -479bdhgzh6 -gkfrmlpc4fivefive3onetwo -7xk355four1one8 -fivefivethreezxl1pxvxsfktvrseven6 -one8qpvchhggcfmthreeone2 -two575ph1 -four5jmcpmnvsvnsevennntmj -8dcrbfs -trbgp3dphtwoninetpnqrlhqq -twogchrpfourthree6one2two1 -1eighttfcpxqqvndzmhrj61s2 -rdvbmsevennine56twothree93 -54xczjhghc -cjlpbqlhfouronebrrmtxlcqprnbfn9 -tdcjgcdgfive82nine -seven5eightpgmjzkmq1fiveeight -two7qttwo -rltbflkbhthreeeight1sevenklbntffk -four85fivethreehxjgqrvm66kmjvljtd -kbm3 -stdfsixpgtsh7qfvss7 -hvlgddtb3threezpfdeight4fourqbsxbbmone -sixxqcdxxnlt4 -d659ninejtdjhmszl -x8kloneeight1 -6c6 -threeone8fourl8oneseventwo -eightdlhztztmpnzrseveneightltlczb1dkssbntzrnqbqtsskk -hnrvdtwoh41rxppklxhqdqxd -65xxzttvlvcb -6ninexvxddmcr -eighttwo9two2nrcfnfqddmmthc -nine5jgksevensix9 -twothreebgrtdknine47 -hpsvckbfourseven722plpqvgrr -kdqtskqp8bpfjgr2sevenzlhqcqfcchpm -49threespvsqhcbkgfkptplseight4four3 -2lzj48four6nineonetwo -7dfiverkr77sevenvfhrqvnr -three7five5 -lgzmgjnr4 -seven4sbqronefivepptqkqbvntwohttvklqkkmzlv -8sixtwo -ctn4fcdxngvvbthreertnbncskgj -8eightsix3 -two56x -3gmlspbcdhs -6ponesixmtsxmqctbv2kkpp -three6two496 -1mkqhdbsdktwothree5 -bvp626v -oneonerfgbtgf5 -8r7twotwo -1drgmbtsc -qsqb6pfxxvrbnhc7sevenzdzrtkzhjmchnrbzksmkrvcx -hcfj8oneightxg -seven5mgbkgdttnsixmncdtsfchsd4fdhvbpxtq -sbqttjhfds8vcjmgsixfonesixnine -twomggrdbvn4nineqbnqkdhgklcqtzh -63four3nclcxrhdzrjpnb2 -9168 -fivejzzdhd3 -twothreekfddrbtk2fivem -7bscsjdpfjchsxkrshjcrzcznine37eightnddl -two16shfjsixglgvkjtxkvdlqtwotwo -six6q -fiveonethreefourgvtdhf259 -dhgnmprvmx21one -4ninejpzpsgkskbkcfive25 -three2mksq -7fgxztnxnlrsht6seven3ss4 -9ntqfq22eight758 -sevenlqrvsixninexzpx4 -one32rznklfb -five1fourtwo9seven73 -3hhbfxone2eighttwo6pfsg -nineonetwo9zsprntffive4gtn -btsixeightone2xvnsix63 -4rlt3 -qfnhxxzhlninefivefour4rvnbdbzggqninedzshxnv -gdqjzdxvs3threehhkm -vnn185nine -79sixsixfivethreevzskfnpspninesix -two1611 -threethree1mqnfpfnsm1 -kdkxlxtqzqpsxtfj6svt -1nptdgtdpct63vjtpxqf -2four1eight -sixseven2hcnjzbdfk -6threembsdhhtcb9ndqjrgktf -fourg9sixmgb5sixsix -7six1xtwosixninenine -rcvrmldhveight76 -twofbmfczz2fourkfgjcfqst5three -fivesix29qltppptworflvjfggcvrgkfqgmtqjpsh -seven4mdhpflzkkfznmlrc -sevenqtgfpcznnxslptdtwosixzkplmzqbxxll7svgxqjlhlv -qrssxmxsxsixone38hcqnb727 -lrfour9bdlfjcsonefourk -83fiveseven -28qnine4kbeight -seven8five22two -twotpxzbbmztone2ncr2tsixone -eightcsjrqsscfour5 -8rjdsq4lsix3 -bclxzxxqbv7ldgdtq2 -four5xfpztvttd -ninen7flpbfzpone63twohzj -five721 -6gqcxpb -58kphone -five1oneone3rgzhmdbdgqfmvm -jfsphkspl2k2gflslvtwov -889nbcbhgdh48 -vlgsixsevenddzxeight7fsc4 -71ninethree7six -zbvgthreefivefivelpp5 -nkpqfsh8fivethree392 -two6cshbcj97j4lqgjvgl3 -sixone2 -oneeighthscfdlgsg8 -ptlkdqs94bnbtzxpqpqzg -znf8three -eight5qkckqbjdqsxsixpvphcqbvfxsix -fcvbjnvninezsjxfxmplpbbdkdxv2r -vlgbhsjleightkjlgsix4six -htwone7htwotrstvbvnldgct -eightrshrg743998 -3nsrtlmhmz9qzbqkrpnh1fourfive46 -onen8 -fourrbjgknhnthree7 -zb79three3qslrsglbrpsjrqmdrmrlone -hhlqztk22qczrcqnxrtfourtwo3oneightsck -jnrqxrclgn7 -5ninelfqcxfkfive -6fivemtqcmcqbtwo6 -onekdxzcdbjgzkhnhsjnjvxgx3fivesixseven -nhqcx14fourfive3 -45kljxlbzdkbfour96fourone -5975r5txqqltj -vhv88 -6onet25five -4two72nineeight -2foursevenonegcdqz -353v7sixsevensixeightwobk -vsqsxgqxn8xkxftpmtrtssxgnfqcqdnsixdsxhhxgonefive -3four716seven6xmrmhv -one4553two -hqlpmone4rvj -pp7mpsrrxcnkseven3twop -nine8bfkgjkhjqc8ggponefivemkeight -fournlh9sxbvjqmfourtwo -cncvbjvzmcthreesix3d -five8vlsix5qfkfdhjcghcvgz99 -tvxsrmnpsx3rkmxfqg6thkrtbmt -6nine5threeeightsixgvxrmbb8 -mgvxxkkxltwobgghk6 -fkqghfour896bfpvshmsjrbpsz -5twoprnfh3fvsrzgcdqv72 -5ninekbf -tlcmtb78 -smkqlqxrglktzn24four -onengbqghkzxlmbjltndnrq3fouronefourz -bthreetwooneeightdsm1 -hfdskdkqtcsthxcfheight3five -41two -tfourtnmxjsmzclfmbmhjrjln57five -p6six -onethree855 -sixccdpqbkbbxdxcckbvtwo8rsixfdntfqseven -one4863one8 -nine29fourfourqljfour -61bshj -eight7zmtgeight7gkrkdjc -pgcxxjfourrbtzgmphl83 -vbb426seven -7two47ztfhll -5five4 -ninesix64nine -7dtvvlkq9threesevenzlfznvninezxpk -5threebgsv -59threeninethreeccb -295fivegdsgnsixsevenfive -eighthqrxpsvksixgn1 -fiveeight8sixfivelt -threenine2 -zgjlcxttjkjd5threefivefive7 -fivetwo444six -nbcsc6eightsvflh -tsdoneightnjbvfktxvvc2 -zhlctqxqxfp8two1eightrnqsq -82kxfsxnvfour -six2cpvmz4three -twollqjbjs366 -seven7threesjlbcznntzkfljxqsfoureight96 -dxsnlhveightnmxone6hzgntkqbfhkdvxg6 -five8fjfzzntklkdgbplpnvdcpdcd2btnphjnbm2 -1six5drpzsx933one -bqffgcnvp5 -pbjktxtslbbdgq6ninetwobrvbbzhrtsevenc7 -9kprctdnpzone56three -twogbdvsdvzp1 -fnczdrvgzngt9 -three56gsljqzxgnzqpvh17threecvtgpshf -ghlksix3fourfiveeight -one95twotwoonet -twoonesixnmfvtqsd8sixfour8p -eight6twojzd -6fourtwodbzrdghsgngljtj -seven971nbrzgmnine5six -lxskt34sixz271eight -hv7one4five1xfdzxgbbsgml -sevenfourxtccpbxfcnnpxxl7fiveone -onerpvsvrgcn8kclkdgqjlsixfive -mtthreeclxhfivep8threelh -9sevensevenqxhhkonefour4four4 -fivesixsixmxnxg5pxjd -zdkzqtjgsevenseven5zkqslxpll -4sbbltdfvskrnxmlj8 -7fktr -mmdhfmchmb1bqdtsmqzrlqxr -3fbzrj5five -threetwotwonine8 -one7bzxkqkflmksixnine9fourtwo6 -pdcfjzttllhsix3 -51fivercdkdrnine8vhckbxsrvg -rskjjchgone71frdxpsqpmxfrsggmsjspklthree -s6eighteight -j1eight -bjxznqjvneightff5twofjjxtrjlm -fqsdttjbsmjf24cxseven6 -seven1srptcft -tdqeightwo9rcncnqgfoursevenpzknnc4 -4eightone2mdfp -gdxgnnfl3fzxqnvntzpzfcxtwoseven -45khpg2gtnplgrdc28seven6 -twoxcspzzmhj77two -three1blbrqddthree -eight6eightthree -8nine4 -eight82six85nine3 -6eightthree5 -sjplthreev6rqqone -rgzdkzbsnvhd33six5 -vxdkzjprsxf2zpblslcpr -vzfourseventhree7 -five72 -7ssbcsmt4nhbczngjmvdlxrdmkjxxzcczf5 -eightrbtvglxstscklzbfive65eightseven -threethreeqggdxdqrfgpl542ngcvzsvgn -qq7llbmzf6five5one7 -5zhnkvdfzlfpqgfvdpqrcdtvkp -3eightthreeninethreeoneightf -one8six52eighttwoseven -93ggfqxzjzksjtwoonethreefive -7twothreeone -zmkrnqfgpvlfknseven555oneightrgp -jhpkdgppzthreeonetwo6 -qcxtwo1onefivetwo -one3tzsnfive3one -cnbhxfour9kttkpgtr -7bvgbgnlkkhknkghtdpnfourtwonetxb -5nine5 -91one14three -48sevenpqvxdz -fivepmlhzfnmr8sdqhzrdkxeight763 -xtjpzzfn4dshfdqfzpcthreenjnine -nbtdqthreexjsg9 -nkgthgfjm583 -ssixtwo1 -155fiverhvj -onesevennine9 -six9rfjqlglsevenoneseven -8jxktrjzqhhmbtmj -qfpfcl7six -7threelqxspxrl3vcjfltpskxsix5 -1seven1xnltmssnskqxqvjrpsdrqxls -seven9sixninedldsrp8 -twolpfb6 -sixsixmdxvkmnzthreekhftctrvlzvfqthree8 -one1sixfive7 -vd3xxvhvszpnine -75bp63 -six55onetbnxg4 -5five2twoone -threemvptgnhxr69nine5 -2fivepgzbmgdhtgcjh -glsbcqm4six1njjbkslthreeseventhree -4onetwoccjtjqfmb -threetwoonenine6346sjbpznqfr -zb599sevennine -sevenone988 -xkgssdsdftzsevenfour144qvszn -nine9sixthreesevensix1threejfggcrbc -pscvksl685 -1gpdvtwotwo -mlvntk4 -onelblcmxhklxcfxm1 -4onexrngzrfive -eight9nine8 -tbdcd4bmxftnlvc -ninesevenrdpj13 -vxdhgcfdkvgztbhxqh3fmsrnkjheight -sbjpgsjtmgninexkv4 -fourldgztjqnzlktxhmncdnfmdlzzsrrtbfhtc1 -jgmzmvqmrbdfjrtzbtzgxbcbq2ctvxjstzsixnine5 -666six9 -6gxhfive9xxthree5pqf -four394 -lzqone8t95 -2cqhpgmszthreeddkkmleighttwofoursix5 -9sevensixsevendhb869 -2foursix -fivetwobqlbgttxkqkmzxfn6fivejbv1 -8fivesteighttwonine -nine83fkjmmnrzgjtdsmrqtktfvcsevennrqctstwo -eight7gx -jbdpffour68eightfoursix5 -ninesevenmnzmxpxcjjl2one3 -fourtjvtmbxlqnjdrjmgrzrh7rfjtkeight9 -three3twonine32 -fcfourfourmgtsv5 -42foureight8grczvgbg -5eight7fiveeight77five -seven6threeqrvtg -eight2ztmqdjhjtqxhvfiveeight -3dx4eight8nineone -fivethree5drcmbgmntxqqf8pdhtfh -eightdfphzlptxsix81seven -4qhsvhplpn9smqnfgd41 -z18ls7 -threesix8bseven4 -19five57threeseven -ctqfqseven8 -15six88 -oneppbxscshpm2nine6xljmsfpqqcsixeight -one5threexntbrf -nineone6qll2jfhdtvvnrhsgdscxb -87vjlvndc8svdkn -sixlqnfpc2prglgeightfour54eightwoll -6btprcqftmthree5xxntlgrcone5 -blzmjpqkcrfour84xkhqk8kdcrjcksnb -5fivetwothree685sevenkfloneightj -bdthrfmz87four342eight -7zbtbdmfbxgsevenfdlleightnfddrld4 -sixpsixpkvtxgsgbz35 -17fourbjf -6chsffs6fddcftznsix1 -77two16nineeightfour -8nvhfv3two -nkdtwone8gcnjnfgsxtjjmt -onethree79tjlnvgqf -276lxfqrrsxjqbbllthree8 -hhdtmpdpdztcp4threehchrvhtxvbssgpvqk -nine8fivevncfslncdn665 -cltgddlcqt83bnktpsixfour -9lssevenqznhgqvvpp5sjlninebkkpmgmkk -5khrnfzfkkcqnmpfour -8ninerf7rnrh -3hdpvpbrtn -522onehvzjv -7xvhxqcpgd -82rxljgfour6 -gztjs8g5 -mhbtwoneznkzfztm2twooneninethreextttcheightnine -9vrlllbqcnpb7drtcxcpsbz4 -73hqmcgkc273 -mqmc1 -foursix31eightsix -sixeighthkpxg5pqqpfbfcmhjskqqkbtqzsix -4pthsjjkfsr11ghfp56two -threeninebsvtkcrn7eightwos -1bbfmrf67four88four -3vh -three851two3qrtpqseight2 -four56sksixone1nineoneightvtc -six349eight5jtxdc8 -ntvjdm1rhxbqdgsbqpvbdb -21five4six -fivefgnnlbrdjsix1two -nine3eightthreenineseven -75rmqtnqrgnmeight -four5rfgldltfkhtjqjfbxfhhmdd9fourbxvpdcgx -onesixtwoqcbqndpgt72three -2xtsgslrgrf1 -psmhzczsonenine8fznbt6stvcsszlrsccfmgcpf -38sbpzgfvjtwo3 -two1threecjmgjsm -nine19 -nine2lchndsevensix99dh -qbknlrd5rsone -264gzqrvckzvnsevenxdj -6jzppeightgcljcnnkgxhbmbv2gsrzszbdrmvzdxhktjmdr -426twoc2twothree5 -sevenfour3sixsixqncc -zfjtprrs89 -99threedbknkl -vrpfjvveightgd4gpvnpdbp46three7 -8ninejttx -gxdmgseveneightgncxrxdtx9threeseven -two9fivenine283xxtwo -four5four91vbqvfhggzjd -9seventhreegrkm9vb2rmvhseven -8gqftwonexp -fourqnvdshvfive7 -dstmqp6hgzqldhxkncjbxh -31nine -nine84fourpnhxltmb7onesix -19pseven7four -foneightfourfour8cvbl -four9qldqps -4tgrjglvtgghvkhtttwossgrfbvlpbxlhfmq -7fouronehjdmx -6ninevvrfqntzmjxpc -ninedfmxcnhth1279one -7gzjmbgonebjxmrvhjxrone -fivelpsstxjllxfive5sevenkbqmgbn -2three81zxvtvnjqfsb -four9threesixzlknkxz8one1pvxff -seven33219 -dlnvxppbzrlczfqrcbzcvfour7seventgnn -26tzzcmlpxfour1rq5jzmssgxhvrzbk -1threekjvfnxvrk7bhljthreenine1 -98nine -9one56six5seven5 -27three18 -7smbbsvxbvs -717one5eightninegnine -fcpnvdkp6twonez -85dgdlfive -pmtzmsjblninevpvcsz9mq75 -4ninepnsdmjkx3four7three -563nine -oneoneeight8twomrxprgdtxm7eight -1fivefivekkqhrzqjjklq -6hhthnkdonehlrvc81three -jtwonetwothree5znqsvfour5czgsqvvtgg -fcfskbfive9eight -221frgs5nineeightwojj -jdmgmsglmpl3 -479 -fltqdrksdzvdmkfive86 -ssnnvxfourthree5 -95jcfrtfbr -56941ninethree -rsfeightwo8seven78kmvdzbrmthree -xpjqjknchcv8twojzone5sevenone -61sixninekzkgnlmd -41gpbxsk8qz -four5pjsix5bdfbsixone8 -fiveeightlpghqqnjdfivetwo7vtgkjtwo6 -sevenninexxvjnvvhqfiveeight46qtfour -8znvhldrsdfqpnhccthree1 -fvoneglhqtvfbr3four -eightdhcngdmvnklgsix47 -6zcqb -bkkvhbvgsixgdgckjzsj5 -gtjckhq73495fq3 -rgrrkksdcftpkkrpssgfjtv7twonine -sixsix31 -5mfd3kjvhmvbhfive9pb2 -8six6xqvvxtbmqqninefourlpzmmhdsk4 -two3sixxtjrl8 -1jhtknlffcjr27 -1fivebnvbqt6 -8ninerdphtvbk11sixrkzszcdngt -sixsevenfour53sixbqhcjcthree -dcpninebpbxdrdtqpm933six -1eightsix4659rtgbcgb -two84pslqtrslbxqnksxcxhqrcmonencxqffmt -ftzzgbzvvbj562cffcvncsbhrzzv -two6gmjd -jlfgq31four9seven194 -dzeightwotwofour39eightcgthzhp -6sbgbqbb5onegxkrcfiveninephshfrftwo -46lgnjvfjt9vjtqmjl18 -mcrsjvfive2 -45gbrpfgttwo5threejlksix -1rpmkjxsdeight7hnpjjkthree -9vvcchtxdltmfnxtqmp1mdntlj -eight8mkzgsdrdhthree6four -33lfivepcthfgfivethreeffftjmgsxl -9bhmz8btcklgsixjdfxlfour -vchvmnn7pk -sevensix4 -3fourthree4seven -oneeightfournine7 -p1one8zcsd1seven9 -32t1fhjzbkmfrgmtwofive6 -1fivelxjmvstxnblxlqdxvmbqcpdzzr7eightone -mktoneightskrgbvmptm89cxv3 -geightwodd88ctqzfourfivesix1six -one6seven2n -9nine8dngqbrp -h5dtnqzhpqjnnrxxcrjc7nineeight -four2prxrhrcvfour -2onexdnj7 -7xdnndpzsbplfrfxdglrsqrc4 -chbmstkhdfdmqsevenone31 -fourthree99 -44fflxqlxjr9pcsthrjt9 -7rdfour24sixbk8 -vnhfzbr4nine2qgoneseven -5h8ntz8jscjpkhg2 -tcsz9ninelbfsxppbjpp8tbxctrtpfz -three4nineeightgfl715 -1tdhxlqbkx69ninenine8 -46ninerjqfivenhcdgprl -199mhhsixdplthqpthree7 -eightfourxjjgrhmdmddzclgbseven9nine -19three -ckqzd2twomdxz -7jxtpmnhtwo6 -tgclgnineone4qqcjgsix4 -fourjvxcmqpvxtsevenznlgdx13twohghrxdp -sjtp5nine4gcrdxscxxtgvscnthree7 -3two5czdn1sixbpzzsfhdhqfour -xflzgzcm7ninepcvfpmssixtbjzb -7zmlcpsjneight7pbtqbkgl -sixdsvgjqfseven7czsthree -twopgmndmtzzsmxcjptg4sqslhkseight9one -2threexgbtcjp -twonfknjvlks5mcpmjcqjfsnfbfivetvzprlx22 -3threefoursevenrkqfrxgx -fiveqpstwo4rnxd75fjgpv -82sglxctseven -fourmxnrhzx8xkzvgtrdlzbzmlhfbf1 -1fivejqvrtl47tshfgrc3 -97twoonerntrscpb -2ljplbrsgrjnlktngjd -854rmtrkhjzrx2nine9ldqrqq -onejmrcmphzksixfbbftwo7 -sevenkncjddrlsixzmb94one -twolgqcnh6 -6oneightsr -jjl4seven -23eight4 -8eight277kts7 -8937 -9cbphfncslbvn23dzcpz4pqzlgfjl8 -zqkhnb7hm7grdpnq -blczr9nineseven -2mxzhtxbjjq56onexrssstc71 -vkvmmgreightgdbqq6six -1six8sixsevengnqbqgxtwofivem -741tfbvpnfour1sgone -glvctfourgmlrqbpsevenvksevensix9 -49four -six9five2sevenrone -fournvrctlkztwosixsevensixvrz1one -ffjl5gztldndtqnb5vjp -bjckqhbnthreethreeonervtkdvxkgf43 -mhrckkcgqdms1rvrfcvpsn3trmfltvbhr4sixlpslr -tffxs4sevenzsdxz -onetgj2mtrdqnsixfzvcscfourn -3jsdxk -flhmdp6eighteightmcxcvffive -bxbzngmpds28 -onexlqp3bhh -jlsjbs2 -1twoonefivenvvhjf -864two7ninejzmpzp -eightthreeseven2nnkvlzxkvhszfpqzhl37ddqvnxg -xkkkskcvsscmmgc2ninephntx6 -lpklkskgcsr8eightsbxcjx -4threelfvzndfive -nx9ninekvzzdlncblkdqbgspdfkcx -tfn5kx6twojmzgbdznc2 -5bszzkpcdxqkvkf7tgcone2 diff --git a/day_1-1/input.txt b/day_1/input.txt similarity index 100% rename from day_1-1/input.txt rename to day_1/input.txt diff --git a/day_1-1/Cargo.toml b/day_1/part_1/Cargo.toml similarity index 100% rename from day_1-1/Cargo.toml rename to day_1/part_1/Cargo.toml diff --git a/day_1-1/src/main.rs b/day_1/part_1/src/main.rs similarity index 91% rename from day_1-1/src/main.rs rename to day_1/part_1/src/main.rs index 00b5868..3e8f376 100644 --- a/day_1-1/src/main.rs +++ b/day_1/part_1/src/main.rs @@ -1,5 +1,5 @@ fn main() { - let input = include_str!("../input.txt"); + let input = include_str!("../../input.txt"); let mut results: Vec = Vec::new(); for line in input diff --git a/day_1-2/Cargo.toml b/day_1/part_2/Cargo.toml similarity index 100% rename from day_1-2/Cargo.toml rename to day_1/part_2/Cargo.toml diff --git a/day_1-2/src/main.rs b/day_1/part_2/src/main.rs similarity index 96% rename from day_1-2/src/main.rs rename to day_1/part_2/src/main.rs index 6095ff3..f7657a5 100644 --- a/day_1-2/src/main.rs +++ b/day_1/part_2/src/main.rs @@ -16,7 +16,7 @@ const WORDS: [&str; 19] = [ fn main() { let regex = Regex::new(WORDS.join("|").as_str()).unwrap(); - let input = include_str!("../input.txt"); + let input = include_str!("../../input.txt"); let mut results: Vec = Vec::new(); for line in input diff --git a/day_2-2/input.txt b/day_2-2/input.txt deleted file mode 100644 index ae8eb0a..0000000 --- a/day_2-2/input.txt +++ /dev/null @@ -1,100 +0,0 @@ -Game 1: 9 red, 2 green, 13 blue; 10 blue, 2 green, 13 red; 8 blue, 3 red, 6 green; 5 green, 2 red, 1 blue -Game 2: 2 green, 2 blue, 16 red; 14 red; 13 red, 13 green, 2 blue; 7 red, 7 green, 2 blue -Game 3: 6 red, 4 green, 7 blue; 7 blue, 9 red, 3 green; 2 red, 4 green; 6 red, 2 blue; 7 blue, 9 red, 5 green -Game 4: 8 red, 2 green, 2 blue; 5 red, 2 blue, 3 green; 7 red, 9 green, 2 blue; 10 blue, 16 green, 1 red; 6 blue, 1 green, 8 red -Game 5: 12 blue, 6 red, 1 green; 10 green, 8 blue, 15 red; 1 green, 12 red, 11 blue; 3 green, 11 blue, 1 red; 7 blue, 5 red, 5 green; 11 green, 2 blue -Game 6: 3 blue, 10 green, 2 red; 5 green; 6 blue, 3 red -Game 7: 3 green, 1 blue, 4 red; 3 red, 13 blue; 14 blue, 6 red; 7 green, 15 blue, 9 red; 1 green, 3 red, 9 blue -Game 8: 19 red, 1 green, 4 blue; 14 blue; 2 red, 3 blue -Game 9: 5 green, 14 blue, 3 red; 8 red, 16 blue, 5 green; 12 green, 15 red, 4 blue; 14 blue, 17 red; 6 red, 11 blue, 8 green -Game 10: 9 red, 7 blue; 6 red, 3 blue, 4 green; 1 red, 5 green, 3 blue; 5 red, 9 green, 6 blue; 7 blue, 6 green -Game 11: 2 blue, 10 green; 11 green; 2 green, 1 red, 2 blue; 2 blue, 1 green, 1 red; 2 blue, 18 green -Game 12: 6 green, 2 red; 2 green; 11 red, 6 green, 1 blue -Game 13: 1 blue, 10 red, 2 green; 2 green, 7 red; 9 green, 9 red; 1 red, 4 green -Game 14: 7 red, 15 green, 17 blue; 10 green, 6 red, 12 blue; 3 blue, 7 red, 3 green -Game 15: 8 green; 10 red, 17 green, 1 blue; 9 red, 1 blue; 6 green, 8 red; 1 green, 1 red; 17 green, 2 red -Game 16: 3 blue, 2 green, 7 red; 12 blue, 9 red, 5 green; 8 green, 3 blue, 5 red; 6 red, 2 blue, 11 green; 3 green, 8 blue, 9 red; 1 green, 5 red, 12 blue -Game 17: 2 green, 1 blue, 3 red; 1 blue, 1 green, 4 red; 2 blue, 2 green, 11 red; 1 red, 2 green; 2 blue, 10 red, 2 green -Game 18: 3 blue, 3 red; 8 blue, 1 green, 5 red; 4 green, 6 blue, 3 red -Game 19: 9 red, 3 green, 14 blue; 15 red, 2 blue, 1 green; 2 green, 15 red, 5 blue; 3 red, 3 blue, 1 green -Game 20: 2 red, 1 blue, 5 green; 11 blue, 1 red, 4 green; 6 blue, 2 red, 2 green; 13 blue, 2 red, 10 green; 7 green, 13 blue -Game 21: 3 red, 1 green, 1 blue; 3 red, 7 blue, 1 green; 1 green, 4 red, 7 blue; 1 green; 6 blue, 3 red; 2 red, 6 blue -Game 22: 7 red, 5 green, 2 blue; 14 red; 2 blue, 5 green, 15 red; 1 blue, 5 green, 14 red; 13 red, 1 green; 3 red, 1 green -Game 23: 2 green, 8 blue, 5 red; 3 blue, 9 red; 9 blue, 2 green; 9 red, 2 green, 5 blue; 5 red, 2 green -Game 24: 14 green, 7 blue, 2 red; 7 blue, 3 red, 16 green; 1 blue, 5 red, 6 green; 3 blue, 7 red, 2 green; 7 red, 9 green -Game 25: 3 blue, 8 red, 15 green; 2 red, 8 green, 2 blue; 16 red, 3 blue, 13 green -Game 26: 1 blue, 9 red, 8 green; 6 green, 1 red, 3 blue; 7 red, 8 blue, 6 green; 9 red, 7 green -Game 27: 6 red, 9 green, 1 blue; 8 green, 3 red, 1 blue; 8 green, 15 red; 14 red, 11 green, 2 blue; 11 green, 4 red, 2 blue; 1 blue, 16 red -Game 28: 6 green, 10 blue, 4 red; 6 red, 2 blue, 6 green; 6 green, 14 blue, 17 red; 9 green, 1 red, 9 blue -Game 29: 10 blue, 2 red; 3 red, 11 green, 7 blue; 8 green, 2 blue, 7 red; 17 green, 5 blue, 9 red; 19 green, 10 red, 9 blue -Game 30: 6 blue, 9 green, 6 red; 17 green, 10 blue, 8 red; 17 green, 12 red, 7 blue -Game 31: 9 red, 1 green, 1 blue; 3 red; 6 red, 1 blue, 1 green; 2 blue, 7 red -Game 32: 3 green, 8 blue; 5 red, 4 green, 2 blue; 10 blue, 3 green; 2 green, 4 blue; 2 green, 16 blue, 2 red -Game 33: 2 red, 8 blue; 2 green, 6 red, 1 blue; 7 red, 12 blue; 1 red, 1 green, 7 blue; 1 green, 3 red, 2 blue -Game 34: 15 green; 1 red, 6 green; 6 blue, 1 red, 17 green; 14 green, 3 blue; 11 green, 1 red; 4 green, 1 blue -Game 35: 4 red, 3 green, 12 blue; 20 blue, 2 red, 2 green; 4 red, 4 green, 8 blue -Game 36: 8 red, 7 green; 15 red, 2 blue, 3 green; 2 red, 1 blue, 5 green; 4 green, 1 blue, 9 red; 14 red, 1 blue, 1 green; 11 green, 12 red -Game 37: 3 red, 3 green, 8 blue; 3 blue; 1 green, 3 blue, 2 red; 1 red, 2 blue, 2 green -Game 38: 18 red, 12 blue, 7 green; 7 blue, 10 red, 10 green; 1 green, 6 blue, 10 red; 7 red, 3 blue, 12 green; 9 green, 5 blue, 3 red -Game 39: 2 blue, 2 green, 2 red; 5 blue, 1 green; 1 blue; 1 red, 5 blue, 2 green -Game 40: 4 blue, 1 green; 5 blue, 1 red, 7 green; 2 red, 5 green, 5 blue -Game 41: 15 blue, 3 green, 16 red; 16 blue, 18 red, 8 green; 8 green, 1 blue, 12 red; 11 blue, 5 green, 18 red; 5 green, 20 red, 17 blue -Game 42: 7 red, 10 green; 1 blue, 5 red, 6 green; 6 red, 3 blue, 9 green; 6 green, 3 blue, 8 red; 4 green, 4 red, 2 blue; 2 blue, 1 green -Game 43: 6 blue, 5 red, 1 green; 2 green; 2 blue, 1 red; 4 green, 5 blue, 2 red -Game 44: 10 green; 8 green; 10 green, 2 blue, 10 red -Game 45: 9 green, 3 red; 8 green, 2 blue; 2 green, 8 blue -Game 46: 2 red, 9 blue, 9 green; 6 red, 10 green, 11 blue; 5 red, 4 green, 3 blue; 3 red, 2 green, 14 blue; 5 green, 5 red, 12 blue; 1 red, 9 green, 18 blue -Game 47: 2 red, 3 blue; 2 green; 2 green, 3 blue -Game 48: 9 green, 6 red, 1 blue; 3 blue, 12 green, 8 red; 4 red, 5 green, 5 blue; 14 green, 5 red; 1 red, 18 green, 4 blue -Game 49: 11 red, 10 green, 12 blue; 4 green, 6 red, 6 blue; 9 red, 3 blue, 7 green; 6 red, 10 green, 14 blue; 8 blue, 10 red, 5 green; 6 blue, 17 green, 6 red -Game 50: 8 blue, 4 green, 2 red; 1 red; 10 green, 4 blue, 1 red; 5 green, 8 blue, 2 red; 6 red, 1 blue, 3 green; 6 blue, 6 red, 1 green -Game 51: 3 red, 3 blue, 2 green; 8 green, 5 red; 11 red, 11 green, 2 blue; 12 green, 2 blue, 19 red; 12 red, 1 blue, 12 green; 10 green, 1 blue, 3 red -Game 52: 2 blue, 15 red; 19 red, 4 green; 11 red, 3 green, 6 blue; 1 green, 2 blue, 8 red; 3 blue, 6 red; 1 green, 7 blue, 1 red -Game 53: 1 green; 2 green, 1 blue; 1 red -Game 54: 1 red, 1 green, 12 blue; 1 green, 5 red, 12 blue; 2 green, 4 blue; 13 blue, 2 red, 2 green; 2 green, 10 blue, 1 red; 5 red, 1 green, 7 blue -Game 55: 4 green, 16 blue, 11 red; 6 red, 15 blue; 6 blue, 4 green, 5 red; 10 blue, 10 red, 3 green -Game 56: 3 red, 8 blue, 11 green; 9 green, 5 red, 4 blue; 1 blue, 4 red, 4 green -Game 57: 3 red, 12 green, 7 blue; 13 green, 14 blue, 1 red; 4 red, 6 green, 9 blue; 12 blue, 13 green -Game 58: 4 red, 4 blue, 3 green; 3 blue, 4 red; 11 green, 2 blue, 2 red -Game 59: 12 green, 5 red, 1 blue; 7 red, 1 blue, 3 green; 17 green, 2 blue, 4 red; 12 red, 17 green; 7 red, 10 green, 2 blue -Game 60: 5 blue, 3 green; 5 green, 11 red, 12 blue; 1 red, 2 blue, 15 green -Game 61: 12 blue, 1 green, 12 red; 14 blue, 12 green, 5 red; 7 red, 12 blue, 16 green -Game 62: 1 green, 8 red, 8 blue; 11 blue, 2 red; 1 green, 10 blue, 12 red; 7 red, 2 blue, 1 green; 6 red, 1 green, 11 blue; 1 green, 6 red, 6 blue -Game 63: 17 green, 16 red, 10 blue; 9 red, 14 green, 11 blue; 5 green, 16 red -Game 64: 12 red, 1 green, 1 blue; 4 blue, 7 red; 10 blue, 4 green, 6 red; 8 blue, 4 red, 13 green; 13 green, 9 blue, 9 red; 13 blue, 7 red, 3 green -Game 65: 4 blue, 3 green, 4 red; 10 blue, 5 red, 7 green; 1 red, 4 blue, 3 green; 13 green, 1 red, 9 blue; 8 green, 3 blue -Game 66: 17 green, 13 red, 3 blue; 15 green, 2 red, 4 blue; 10 red, 4 blue, 5 green; 6 red, 5 blue, 7 green; 3 red, 10 green, 1 blue -Game 67: 10 blue; 4 blue, 4 red; 4 blue, 3 green, 3 red; 1 green, 5 blue, 3 red -Game 68: 6 green, 6 blue, 3 red; 13 blue, 1 red; 14 blue, 6 red, 2 green; 14 blue, 7 red, 2 green -Game 69: 2 green, 2 blue, 3 red; 1 red, 6 blue, 4 green; 8 green, 9 red; 2 green -Game 70: 2 red, 7 green; 1 red, 10 green, 1 blue; 6 blue, 14 green; 6 green, 2 blue, 1 red; 5 blue, 10 green, 2 red; 2 blue, 11 green -Game 71: 6 blue, 4 red, 7 green; 13 green, 6 red, 3 blue; 8 green, 2 blue, 4 red -Game 72: 3 blue, 1 green, 11 red; 5 green, 11 blue, 4 red; 7 blue, 13 red; 14 blue, 12 red, 5 green -Game 73: 8 red, 19 blue, 4 green; 15 green, 3 red, 16 blue; 7 blue, 9 red -Game 74: 5 green, 8 red, 6 blue; 8 green, 9 red; 11 green, 6 blue -Game 75: 1 green, 6 red, 4 blue; 2 green, 13 blue, 6 red; 10 red, 1 green, 10 blue -Game 76: 3 blue, 6 green, 2 red; 7 red, 6 blue, 4 green; 5 blue, 6 red, 3 green -Game 77: 17 red, 6 green; 7 green, 12 red, 4 blue; 4 red, 7 green, 14 blue -Game 78: 1 green, 15 red, 5 blue; 16 green, 3 red, 18 blue; 13 blue, 1 red, 13 green -Game 79: 7 red, 1 blue, 3 green; 2 green, 5 red; 5 green, 2 blue, 8 red; 11 red, 1 blue, 3 green -Game 80: 9 blue, 4 red; 4 green, 3 blue, 4 red; 7 red, 9 blue, 4 green; 5 red, 9 blue, 4 green; 3 red, 11 blue, 5 green; 6 red, 4 green, 11 blue -Game 81: 1 red, 16 green, 2 blue; 4 red, 15 green, 10 blue; 2 red, 9 blue, 17 green; 10 blue, 16 green -Game 82: 4 blue, 3 green; 2 green, 3 blue; 4 blue, 2 red, 2 green; 2 red, 1 green -Game 83: 10 blue, 8 red, 19 green; 8 red, 4 blue, 17 green; 2 blue, 9 red, 6 green; 11 blue, 2 red, 17 green; 1 red, 17 green, 8 blue -Game 84: 4 blue, 1 red, 6 green; 7 blue, 10 green, 4 red; 1 green, 7 blue, 1 red -Game 85: 1 blue, 2 red, 1 green; 5 blue, 2 green, 9 red; 1 green, 2 red, 10 blue -Game 86: 17 blue, 9 green, 9 red; 19 red, 12 green, 11 blue; 19 red, 9 green, 17 blue -Game 87: 11 green, 6 red; 1 green, 4 blue; 16 green, 5 red; 14 green, 1 red, 14 blue; 12 blue, 8 green, 6 red; 4 red, 11 blue, 2 green -Game 88: 6 green, 7 red, 1 blue; 5 red, 1 green, 1 blue; 3 red, 6 green -Game 89: 1 green, 8 blue, 1 red; 8 red, 1 green; 4 red, 6 blue; 4 red, 10 blue; 8 red, 9 blue, 1 green -Game 90: 6 blue, 12 green; 1 red, 4 blue, 14 green; 5 red, 5 blue, 6 green; 1 blue, 3 red, 3 green; 7 green, 4 blue; 2 green, 2 red, 1 blue -Game 91: 2 blue, 12 red, 4 green; 7 green, 6 red; 1 blue, 7 green, 6 red; 5 green, 5 red, 1 blue; 1 blue, 11 green, 9 red; 4 red, 1 blue, 2 green -Game 92: 4 blue, 12 green; 6 red, 4 blue, 2 green; 5 blue, 1 red, 17 green; 6 red, 4 blue, 15 green; 3 blue, 5 red, 13 green -Game 93: 8 green, 2 blue, 16 red; 7 green, 3 blue, 8 red; 9 green, 4 red, 3 blue; 13 red, 5 blue; 5 blue, 1 green, 10 red; 1 blue, 9 red -Game 94: 7 blue, 5 red, 14 green; 8 green, 3 blue, 1 red; 4 blue, 8 red -Game 95: 3 blue, 4 green, 10 red; 5 blue, 17 red, 2 green; 18 red, 2 green, 5 blue; 3 blue, 3 green, 2 red; 4 blue, 18 red; 6 red, 2 green -Game 96: 1 blue, 9 green, 2 red; 3 red, 10 green; 2 red, 8 green, 4 blue; 17 green, 2 blue; 10 green, 1 blue, 1 red; 8 green, 1 blue, 3 red -Game 97: 9 green, 1 blue; 1 blue, 6 green; 7 blue, 3 green; 3 red; 17 green, 5 red; 1 blue, 17 green, 5 red -Game 98: 4 blue, 7 green, 2 red; 15 green, 10 blue, 1 red; 4 blue, 5 green; 1 green, 2 red, 5 blue -Game 99: 2 green, 1 blue, 14 red; 11 red, 6 blue, 5 green; 10 red, 18 blue, 1 green; 5 green, 9 blue, 9 red -Game 100: 5 blue, 5 green; 7 blue, 15 green; 4 red, 7 green, 12 blue; 7 green, 1 blue; 5 blue, 9 green, 1 red diff --git a/day_2-1/input.txt b/day_2/input.txt similarity index 100% rename from day_2-1/input.txt rename to day_2/input.txt diff --git a/day_2-1/Cargo.toml b/day_2/part_1/Cargo.toml similarity index 100% rename from day_2-1/Cargo.toml rename to day_2/part_1/Cargo.toml diff --git a/day_2-1/src/main.rs b/day_2/part_1/src/main.rs similarity index 95% rename from day_2-1/src/main.rs rename to day_2/part_1/src/main.rs index 1c3fb98..8ad7e80 100644 --- a/day_2-1/src/main.rs +++ b/day_2/part_1/src/main.rs @@ -3,7 +3,7 @@ const MAX_GREEN: i32 = 13; const MAX_BLUE: i32 = 14; fn main() { - let input = include_str!("../input.txt"); + let input = include_str!("../../input.txt"); let mut result = 0; 'main: for line in input.lines() { diff --git a/day_2-2/Cargo.toml b/day_2/part_2/Cargo.toml similarity index 100% rename from day_2-2/Cargo.toml rename to day_2/part_2/Cargo.toml diff --git a/day_2-2/src/main.rs b/day_2/part_2/src/main.rs similarity index 94% rename from day_2-2/src/main.rs rename to day_2/part_2/src/main.rs index 8564e0b..66ee525 100644 --- a/day_2-2/src/main.rs +++ b/day_2/part_2/src/main.rs @@ -1,5 +1,5 @@ fn main() { - let input = include_str!("../input.txt"); + let input = include_str!("../../input.txt"); let mut result = 0; for line in input.lines() { diff --git a/day_3-2/input.txt b/day_3-2/input.txt deleted file mode 100644 index 4eccb80..0000000 --- a/day_3-2/input.txt +++ /dev/null @@ -1,140 +0,0 @@ -...733.......289..262.....520..................161.462..........450.........................183............................................. -....*....................*.............707.352....*............/.....................801...@...............333..196........484.635......287. -....42.........131....913..............*......&..........634..................440..&...............83.....@...........404$..=....*..423.*... -618.......272....*.........&......547.344...............#............689.589.*....150......382=................................168......433. -..........=...............253.102*.........#......78.......804..........*........................858.........................-.............. -...69.......*37...510.797...........596.946........#..................................602.175...............203..100..........681.......546. -...*.....110.....*......*..........*..........396......858=.......381....................*.......246*637..........=..391+................... -...973........274..551.............576.21@.......$..................*.......................................176............181.883......*... -.......223............+............................649.701.936...17..482..........80...........210.......+...=.........563.......*...222.... -.373..*..................532....707.......956....@..+.....*......*...........+927.*......698......+....763.........275*.....27..498......... -....*......................+......*.........*..719....540.........24...=...........39...*...................514.........126..#.............. -.....974.......952*308..@..........965....450............*4.343......772../..............437............=....*............./.....309........ -............58..........840.....34................877........$............189..................*186......657.670................&.......854. -....22.406..*......883............*......880...........939...................................58.....387..................*.................. -......*....587.........564/......599.......*...........*......................831.891/...552..........$.534+.....%802.975.960.346*.......... -.792+..............828................-807.6...........326....324...722...334..*...........*................................................ -.....................*.......................895..764*.........=...*........*..611..........79.......461@..546*940...818.346..........247... -....%....473......................288.......*....................932.....590...........918......791..................................*...... -.....621...*........................*....129....425.10.....*.....................419....*.........*...166......#11...................831.... -119........302.832.............159.506................*.229.....493....39...............587....523.......*..........610...805.559........... -......971.......*..........229*..........961........139..................+....411..................554....26.90.....$........*....-......... -...........463.615...................315....#...................................-...422.......109.-............*247................231.56... -..279*159.*...........126...569...............906..20..........990..........27.........%.......*.............................960-......./... -...........364....812*.......*..$.........812*....*.....369....&......176......................15.346#...#.....908...828..........-650...... -.842*771....................189..9...............42...............897*...............479.................99.....+.......*................... -................842*356.849...............336.......201................412......./...@...........205....................956....*319.383*.... -...438....&................*......../.......*.../...*....&.......62...*........348..............*....................54.....302.........298. -......$..318................264.....28...259..824..306...249.......&.392...444............889#..418....945...496..../....................... -................610.160......................................................%.699...987......................*............................. -..........@125.....*..............292..#....514..........................165....*...*....&.....*672.....551.194.426......53...500.599...278. -.275.192.........................*....854..#..............190............$.....40..662.706..774.........$................../..*......*...... -....*.........*840....*638.....82...................520...*................................................../.190...719.......34....620.... -...........532.....521................................*...423..75..........+....-........#...29.......258.605.....*..-...................... -...........................37........../354.%453.....248.........*...561.481....727....437........969...*......243.......................... -..................................183.........................+..250...+...................312.....=....150............@...229.............. -...624...454*710..../..........=..*......../........%30....308..............................*................+...381..941........461.341.... -......=............19.........297.......213..........................%............*522......442............962...-............92..-.....*... -.................................................324.663............775...290=.301...............=...15........=....780..................562 -747........................438...35...806*.......*......................................%396..508......*700...16..-..$..230....443..617..... -.......$.........447......*...............336..424.........618........-..276......260............................452......#......*...*...... -....824..@916....%...488..145....%.....55..........821.....#.....620.773....*116..*.......384............156.972................974..872.... -...................=...........494.....*......609................*...............768..195..*......108/..........*......440.................. -...187...........135.=.....44.........860..........$.......+..923...........966..........#..136.................423.......#....185.......... -.....*....298........761.........................217....157..................*.....................292....268........#........./............ -..789........../.375.........919.......425.........................542.....691..69..........184......*.......*.....578............531....... -.......740..619..*..............=........%....788.....+..324..........*..........*......531..*..=82....962.409.690..........981............. -......*...........652..+.........................*....32.#...........53...........761...*...353.....43*.......................*....6....611. -....589......../........190.362@....961...........917......*...........................165...............&..718...............633...*....... -.............781...565...............*................&..324...............................339..........964..+..........%..........427..312. -.........927.......*........#260......919.......828..469........585..........803............/...&.......................365................. -....406..........190........................308.*.................*.............*2.803&.........417....=............................955..126 -.....#...61.75.......149....293.768....678#......675............449.....@...............%...............347......301.....-.490.....*........ -............*........*.........*.............751........................888..&..348..49.747.........................*.318..#....888......... -..........160......335.................455....*.......761...................564..*............*926...654...../....907................857.... -.....446.....................@....915.....&....639...=...........285..............567......862................731..............9........*... -..........513.............694..........$...............233..721.&................................806.....101.........729.......@.........292 -...........*.....565..................329................*..*........137......$849...=773...........=...*.............*..+..........32...... -...359.277..849.....*399..................274....535....348.950.....*...............................................553..607......../....... -.....%.*.................*...146.564.818....*.....*................438..............343..945......85............162......................... -...#...67.374..*593.....740......*......*..553...795..664...$................493#....*............-...............*...971................... -...510.....+........843.......791..277.................*....958....................489..#.................*657.213.....*...610.....193...... -........*......#....#.................#.......$..&12....531......167......659*...........521...157*....896...........503......+.......*241.. -257..171.245....959........................109................+...............454..................239...../................................ -...*...............................................#..........203...%...&..............359.330.846........751...382.985&.........646$..#.... -..624........453..................870......890#...662.............371..311...739..........*.......*.............*............=.........817.. -..................................*....................250.....54............*......../..........182...........237.....261@.250............. -................743.......946.....943.....414#...80....@.........*..751............159..448..............91.............................&529 -683....@....370..............*........569..........$........131...........@34..........*....736.........*...434*929.........127............. -...*.110.....*....48..........644....*....467.................*...............92.....673.......*718.....697.............979.&............... -.745.......503.......288..827.....911.......+.......79..290.191..........$....*....................................230..........517......... -.........%.....551..=.....#...........192.....917..&............597...479.....316.743...%.........#................*........122..*.......... -....529.461.../..............793.........*633..*.................%..................=.604.........320.......393..599.........*....717....... -768...*...............=567.....-.144..............545................6....591..............216*.......73..*....*........215+.842............ -.....783....855............196......*.........909..*......537.......*......=....435............874.../...902.657........................@449 -.............*........%510........28..........*...605.....@.......468............#.....630........................418@..............701..... -......397.....748........../...+........487..521......934...................&992.....-.....160.......477.....-.......................*...... -.916.................476.651..462..........%...........*...464......................425....*...........*..531...735....=..878.....853....... -....*...............*.............*..................965...*.........754..3..657.......................92..........@..838................... -.....116.....469...498........537..666....622&............237.......*..........*....204...........242.........&...............599=.......... -..............-................../.............283=...........283#.919.........638.*.........452.....*794......204.326...................168 -...........................541........................544.............../183........67..903+........................*....75.512..605........ -860..............*.........*.............455....730....*......................143................@....-.....=...366.......@......*...+59.... -...*..............447....916.....127........+.....*.....60................./....*...............572.658...891...+...300.....674.733......... -.768................................*.-..........522.28.......870.....-....89./......764*...........................*........%.............. -............606....*...................798..............298...*......342......430........668.........485.270.265/..893..............=....524 -......#.880*.......88..907.........239..........509....=......406.+..........................264........*................829........991.%... -....850.................%.....&913....*...........*...............302..&228.......%601....63*......414....*156.............&...310.......... -.............@....184.......=.......260..........748........................149................................895.....697.......*.66....... -..........483.......*....500..970.......88..941...........25.....623...436...*.....................278..........=......*......522..*........ -................................*.........*.-.......885....*.......#....$..848........260.........-.....579.........950...........948....... -...........270..........+....$..736.....245.........*....936.512........................*...@..........*.....$.&.........790................ -.....................634...764....................488.........#......454...............46.995........344...59..135..........#.@851...@949... -808.......214.............................................610...................................185*........................................ -...........*.............+...........812........606..........*.................383..................218...355/................804.@687...... -.....751.476......145.....991.314.........................123.....917......434....*.634..&....@.................805....15......*............ -......#......25......*884......*..@......526*.................*20....*....*.....328.$....672.245....*392.423$...-.....*......83....484.581.. -..............................440.759............124*397...779.......752.303.....................764.................376.806......*....*.... -.401..976...75....765.......................%.......................................430...................................*......796....82.. -........*...&......*......474...2.-351....287.....=........@.......%....%....*731......$.......=....976.........960#.381..192............... -........808........959.......#.....................322......243...534.134.828............*....95.........241...........*.......388...567.... -....$.........511......435.........825..................................................742...............&........%....888...#............. -....53...........-....................$.......-...........................191.....933........454...................649..........=........... -.....................993..430*....624........817.102.......660...............*.../.....157/...*...............................845........... -.....&.....466..692.....*....../.....*.................987.........381....746..................744...........722.........340................ -..526.........*...*......74..810....257.........-....../............*...........941..898..................../......769...=...480..$...@..... -........658...338.107..+.................563..550........388*....542.............+....&........112......572........&........*....553...588.. -631........#..........641..759......880.@....................740........247....................*...........*............$....310............ -..........................@.........*.............888....&........-.....*....3....154....790..24..847/......767......933..............#..... -.....790...684....669............626....324....@.......862......77..+....627..*......*....*.....................809*.............922..913... -......*.............*.....*243..................372..........+.......878.......155.36...656....%..........917.............#.....*........... -....935....184/....888.357.....917..797....293...............427............................665..766.........*.........986.......671........ -................................*..................................93.247................$..........*641....598..........................459 -........................922*295..664....&..........188%.481..............*.............35.............................806.......107*32..*... -..........261.$113.....................456...................916..480....942.848.....................781*3.146..168....*......=..........222 -137.......*.................243..............783*......940......*....*........*......155......*25...........*...$...902........217.......... -.../....460.....140..170.........................283..*......647...501...-.359...365.......491.........869..103............................. -...............*......$.........941..................75................282....../...............786*.....*......741.686......24............. -527........................*109.*...522..................*79.....#575...............................810...373..*......*..444*............... -...*..&37...............331.................714*..............................62$...43..%.......................983.446.............79...... -886.............................................40.................506.421..............726............171...............676*964.....*...... -................651#...301..500..497.......601*......%...263*675......*.......136*56..................*.............836...............264... -........229....................#...&...156.....495..769......................................597.......355.............#..365...379......... -....539.......%...933...................*..138..................402...730.......................*718.......12................$.*............ -....*........63...*....................368.....691....................*..............................#...../.....772............116......... -....501............777.......673..728......613.&...467....688.../..526...387...726.......@568.260..456..............*.......64.............. -403...........................*.....................*.....*...311.......&.....*....387.........*.......437..$901...744.929.................. -...*.......................825.........&...........867.........................994...@........346.......................*.............285... -....260........892*.................294..................................#............................................172.....730........... -........743........610.........954......44@.46....606$..................718......963.970.........863.....772..............*......*.......... -284.......*............950.....*..............@..................=.............*......%.............*425.../..=625.....479.305.331...-...... -...*...139................*...976........32........-.............655..........233.373.....870..431..................................17...... -399...........820........844.........%....../744.353.&...................370........*......*...........@...135..700............*............ -....*364.#....../....266...........295................486..........932..........98.311....319..........599....*.&.......98.#....202......... -.........768.........*.........982...........................413....*....185.....+................637.......48...........*.132.............. -.....................239........*.....................551.......*38.111....*.@.....778...856*25........605...../....355.........230......... -...105..........*.............879........264....177.....*.783............839.682......*..............*.....-....756....*...415.*.....589-... -.............438....................428....*.........465.....*194....................803....100...955.238..836.........767.%...555.......... -.....86....&........702........./..*.......363.........................=630.737#............%...........................................259. -......*....256.......*.......+..57..806.......................591*............................*348....829...................+460............ -.....................244....6.....................................789......................687.............................................. diff --git a/day_3-1/input.txt b/day_3/input.txt similarity index 100% rename from day_3-1/input.txt rename to day_3/input.txt diff --git a/day_3-1/Cargo.toml b/day_3/part_1/Cargo.toml similarity index 100% rename from day_3-1/Cargo.toml rename to day_3/part_1/Cargo.toml diff --git a/day_3-1/src/main.rs b/day_3/part_1/src/main.rs similarity index 97% rename from day_3-1/src/main.rs rename to day_3/part_1/src/main.rs index 9308f96..a66cbf2 100644 --- a/day_3-1/src/main.rs +++ b/day_3/part_1/src/main.rs @@ -15,7 +15,7 @@ fn inc_if_lt(input: usize, max: usize) -> usize { } fn main() { - let input = include_str!("../input.txt").trim_end(); + let input = include_str!("../../input.txt").trim_end(); let mut field: Vec> = Vec::new(); let mut checked: Vec> = Vec::new(); let mut sum = 0; diff --git a/day_3-2/Cargo.toml b/day_3/part_2/Cargo.toml similarity index 100% rename from day_3-2/Cargo.toml rename to day_3/part_2/Cargo.toml diff --git a/day_3-2/src/main.rs b/day_3/part_2/src/main.rs similarity index 97% rename from day_3-2/src/main.rs rename to day_3/part_2/src/main.rs index 6d7c04e..ba09d07 100644 --- a/day_3-2/src/main.rs +++ b/day_3/part_2/src/main.rs @@ -15,7 +15,7 @@ fn inc_if_lt(input: usize, max: usize) -> usize { } fn main() { - let input = include_str!("../input.txt").trim_end(); + let input = include_str!("../../input.txt").trim_end(); let mut field: Vec> = Vec::new(); let mut sum = 0; diff --git a/day_4-2/input.txt b/day_4-2/input.txt deleted file mode 100644 index 7a8f270..0000000 --- a/day_4-2/input.txt +++ /dev/null @@ -1,219 +0,0 @@ -Card 1: 99 71 95 70 36 79 78 84 31 10 | 5 45 54 83 3 38 89 35 80 49 76 15 63 20 21 94 65 55 44 4 75 56 85 92 90 -Card 2: 73 44 51 27 89 2 81 32 42 93 | 93 81 29 48 51 1 36 92 23 80 44 85 73 13 89 33 96 2 12 32 50 77 27 42 61 -Card 3: 15 80 72 53 26 29 57 81 95 21 | 81 27 26 50 80 74 96 95 65 25 12 44 8 56 99 72 29 23 14 15 47 53 73 21 57 -Card 4: 61 39 42 50 51 19 83 8 6 59 | 39 51 50 34 4 6 96 25 79 19 8 29 61 42 37 38 90 83 15 59 10 71 7 94 48 -Card 5: 83 63 23 45 72 51 70 4 28 47 | 31 73 38 63 83 23 59 86 47 40 28 33 69 85 34 45 50 72 51 70 9 79 82 4 37 -Card 6: 7 85 75 80 88 92 63 22 72 42 | 63 40 54 22 92 29 75 89 72 85 33 88 18 30 7 42 99 1 12 41 94 76 35 80 14 -Card 7: 64 72 66 7 15 80 99 12 49 29 | 4 42 85 99 74 66 40 44 80 48 71 72 73 35 86 43 7 49 5 15 78 26 64 29 12 -Card 8: 46 39 26 90 37 74 56 19 68 38 | 45 83 90 39 93 56 22 27 69 46 30 4 81 65 37 9 6 26 77 24 92 73 88 19 42 -Card 9: 92 80 16 53 68 79 52 67 46 99 | 99 94 52 90 5 41 46 79 12 73 35 20 77 16 80 60 65 92 43 82 23 67 68 7 53 -Card 10: 73 68 54 50 3 41 26 69 86 20 | 41 93 36 94 72 50 3 17 91 66 73 67 7 35 48 42 54 52 20 74 2 11 86 75 68 -Card 11: 13 7 2 74 99 21 19 57 98 53 | 70 36 10 69 53 57 80 48 19 45 83 7 98 54 13 21 31 99 74 3 44 23 2 85 29 -Card 12: 71 12 22 93 7 74 25 82 36 58 | 68 97 52 1 96 54 9 13 77 4 44 56 47 65 38 58 98 11 89 85 25 70 26 35 45 -Card 13: 32 35 30 83 70 11 81 84 41 85 | 1 30 52 84 32 41 85 83 98 97 58 91 57 21 6 23 28 93 96 35 81 33 46 11 70 -Card 14: 1 89 42 5 51 2 41 46 10 48 | 91 80 3 47 5 48 92 33 36 60 40 55 7 90 93 66 68 38 64 72 4 73 97 42 83 -Card 15: 30 2 70 48 46 52 33 94 22 35 | 20 22 23 16 46 30 51 60 4 41 48 52 35 13 72 37 40 42 17 70 85 94 2 26 33 -Card 16: 27 7 54 33 62 42 86 29 60 31 | 95 19 61 52 25 76 3 22 62 60 90 32 88 70 87 14 71 73 77 16 85 82 89 74 27 -Card 17: 44 66 75 77 53 63 41 20 39 43 | 97 90 25 20 27 52 74 58 67 73 84 40 69 55 29 32 35 51 86 15 56 43 13 48 1 -Card 18: 65 55 81 16 17 66 9 50 79 24 | 81 94 88 92 76 64 74 98 17 41 46 49 99 96 5 65 66 78 97 16 93 69 79 84 9 -Card 19: 34 48 51 4 33 64 10 76 96 83 | 90 21 32 61 85 45 91 58 67 86 93 41 54 15 94 39 3 70 97 99 31 75 40 19 43 -Card 20: 94 45 12 48 65 29 63 74 18 51 | 53 38 79 57 80 45 2 18 47 77 16 71 95 76 91 1 29 23 33 88 74 39 44 42 68 -Card 21: 20 8 57 48 95 92 69 16 27 79 | 33 2 89 48 51 28 84 64 54 9 59 80 87 34 17 24 45 71 29 20 66 94 96 4 21 -Card 22: 46 90 22 95 52 73 6 98 94 80 | 38 89 23 13 21 85 81 17 26 48 67 93 2 9 62 18 97 7 76 33 40 57 37 61 92 -Card 23: 37 83 50 69 31 59 98 48 12 82 | 6 81 53 87 67 39 41 29 51 47 70 38 73 72 8 23 25 63 37 98 30 14 45 54 77 -Card 24: 17 46 21 79 87 32 78 70 19 69 | 1 55 6 47 50 37 94 74 99 42 40 70 52 68 64 88 10 22 66 4 3 81 24 38 84 -Card 25: 28 35 32 81 51 46 58 4 74 88 | 21 54 22 6 92 95 3 37 5 47 17 76 33 34 13 16 79 75 50 23 40 41 20 78 29 -Card 26: 51 44 56 78 57 88 18 36 68 39 | 31 27 87 40 13 29 22 38 43 37 69 32 75 91 26 82 64 20 55 15 88 19 79 8 16 -Card 27: 16 76 77 44 37 98 85 54 25 27 | 92 54 68 77 10 8 25 5 73 36 20 44 96 91 16 85 76 60 27 29 2 31 71 37 98 -Card 28: 90 78 37 68 12 32 99 86 35 36 | 60 77 9 12 91 20 58 42 85 94 17 63 4 73 30 82 90 53 37 26 31 51 84 1 18 -Card 29: 1 54 43 4 42 71 80 19 46 98 | 23 31 29 94 4 9 64 27 60 54 98 52 45 68 19 42 1 91 67 88 17 80 43 46 71 -Card 30: 6 36 13 39 31 88 27 2 59 51 | 64 32 66 59 2 25 36 22 46 6 31 37 85 13 78 45 51 24 27 21 88 28 92 39 5 -Card 31: 92 62 69 20 34 89 49 27 29 17 | 56 21 2 29 39 17 48 9 92 44 42 20 57 68 7 84 86 47 26 98 49 96 74 13 32 -Card 32: 21 24 37 65 36 69 29 47 63 61 | 17 4 71 34 28 75 77 60 95 6 43 89 1 42 41 53 54 13 64 52 84 92 32 3 18 -Card 33: 91 64 15 16 54 2 85 82 24 27 | 82 20 67 16 85 24 68 43 27 2 91 31 40 18 15 99 87 19 8 94 84 49 64 34 54 -Card 34: 76 99 93 72 60 21 67 20 82 65 | 72 76 98 20 53 60 37 64 99 14 29 2 84 92 94 67 82 75 21 93 26 80 65 41 51 -Card 35: 60 74 84 32 64 25 34 87 31 42 | 29 86 45 69 37 71 32 80 25 64 42 13 31 24 55 58 73 87 20 8 60 74 67 34 84 -Card 36: 84 26 18 77 72 22 32 17 67 45 | 14 28 84 33 25 77 32 86 55 70 17 23 41 69 53 26 95 1 98 47 73 72 12 76 18 -Card 37: 57 75 65 98 48 37 46 38 2 94 | 18 79 37 10 3 2 62 95 20 94 26 44 38 71 65 51 84 74 98 29 15 64 75 57 59 -Card 38: 3 93 29 48 20 74 42 75 23 30 | 17 23 46 95 29 91 3 4 63 30 57 48 81 97 47 74 37 75 8 93 43 64 20 68 42 -Card 39: 13 20 83 35 91 51 74 7 8 39 | 67 35 27 36 20 54 64 91 74 60 93 32 83 47 39 42 8 48 76 10 90 62 7 3 13 -Card 40: 54 72 41 61 65 77 3 75 91 80 | 21 45 58 54 62 84 13 71 12 61 75 92 41 43 57 80 59 76 47 40 42 10 23 36 56 -Card 41: 23 67 15 48 7 8 35 68 21 64 | 46 55 59 5 65 96 73 52 39 78 7 35 21 92 41 64 95 23 48 31 50 69 10 99 30 -Card 42: 5 39 68 26 63 40 14 48 65 23 | 6 22 48 63 93 65 37 68 27 99 3 15 11 33 97 46 26 59 34 53 70 76 72 62 23 -Card 43: 29 55 31 81 65 53 70 57 77 6 | 20 4 12 54 37 21 73 71 1 14 8 3 43 97 61 99 27 9 98 18 64 96 24 13 89 -Card 44: 83 55 94 72 40 35 41 58 7 45 | 10 18 75 45 93 27 42 87 1 59 54 50 28 3 40 84 85 73 74 49 17 48 6 88 64 -Card 45: 13 53 30 61 77 90 98 55 58 41 | 39 37 61 18 96 59 51 12 60 17 63 36 33 2 98 19 90 88 79 16 72 56 11 76 89 -Card 46: 86 58 95 57 88 43 87 60 51 89 | 55 87 34 78 37 73 24 71 4 19 1 13 82 91 21 46 68 67 36 22 41 26 64 80 23 -Card 47: 88 71 37 47 5 76 78 95 79 28 | 12 29 10 20 65 6 56 63 97 38 94 96 3 7 51 39 70 86 46 68 17 58 64 89 24 -Card 48: 82 77 16 24 42 3 8 68 64 48 | 50 99 88 22 89 78 85 53 19 66 60 64 31 52 75 69 27 4 47 32 41 55 21 96 80 -Card 49: 20 55 73 3 41 87 35 97 29 60 | 94 63 56 46 85 25 96 83 89 45 18 8 74 81 27 51 95 44 34 99 22 77 38 69 5 -Card 50: 42 84 27 79 14 59 91 94 87 30 | 46 90 99 45 79 68 13 41 39 84 76 87 26 33 91 37 59 42 14 65 32 30 27 94 9 -Card 51: 52 1 20 6 70 54 66 29 88 31 | 87 1 81 76 52 11 88 31 91 72 70 42 2 86 66 6 27 78 54 47 29 46 99 20 69 -Card 52: 67 73 66 1 54 15 33 50 30 27 | 77 30 27 94 1 60 54 91 5 33 58 67 84 7 78 24 50 15 73 75 71 93 66 2 42 -Card 53: 77 72 59 45 61 35 63 56 23 96 | 35 99 8 77 46 72 97 12 28 10 87 30 43 59 56 96 1 63 31 23 70 32 61 45 62 -Card 54: 99 90 44 72 42 78 94 37 33 22 | 99 69 42 9 44 84 81 94 14 5 13 95 34 26 22 33 66 55 90 78 10 98 63 72 37 -Card 55: 35 21 13 8 85 29 20 25 27 64 | 11 30 69 50 36 43 22 85 82 9 8 25 32 20 13 7 49 61 57 93 29 35 27 64 21 -Card 56: 57 36 51 13 35 9 16 1 63 95 | 35 21 36 65 85 13 18 1 9 29 63 70 51 16 69 43 86 57 53 52 66 84 41 23 95 -Card 57: 19 85 67 8 54 56 11 40 97 39 | 81 54 29 36 57 13 80 31 40 27 97 47 33 78 1 86 63 76 6 22 96 62 98 95 71 -Card 58: 35 62 19 46 95 73 99 63 44 78 | 87 95 77 73 72 18 60 69 78 54 38 39 43 8 48 88 41 71 61 36 89 83 99 52 62 -Card 59: 97 20 41 25 22 26 93 33 85 63 | 26 51 80 42 66 63 10 24 81 22 5 31 30 58 27 19 46 16 33 61 54 50 85 39 25 -Card 60: 65 50 27 43 20 75 45 25 5 56 | 45 9 91 55 98 62 43 74 75 20 27 42 52 22 29 93 56 65 50 8 14 3 36 25 5 -Card 61: 52 66 67 33 27 93 7 96 77 73 | 53 27 69 66 52 47 62 18 92 6 85 33 94 75 19 67 91 73 7 50 93 77 81 96 65 -Card 62: 47 12 70 85 81 23 83 42 39 25 | 88 39 12 40 38 5 21 41 80 81 49 62 46 94 14 82 51 19 47 93 23 74 48 42 34 -Card 63: 85 53 50 20 89 13 84 40 26 88 | 67 23 49 44 4 31 91 94 81 92 52 97 53 24 40 26 87 3 15 89 30 20 46 57 28 -Card 64: 68 21 67 80 58 11 20 98 94 64 | 4 76 27 75 23 94 93 37 17 66 12 10 9 2 33 52 41 81 15 18 99 60 5 42 59 -Card 65: 85 11 79 22 95 13 64 46 52 66 | 48 65 55 63 85 35 26 39 19 37 8 53 30 98 95 22 69 47 54 66 99 79 25 46 91 -Card 66: 70 50 51 60 92 24 95 43 61 96 | 51 48 24 52 33 46 28 79 61 81 70 84 30 92 23 96 11 95 34 10 53 26 75 86 64 -Card 67: 24 49 73 72 51 35 27 57 16 55 | 35 49 95 25 74 89 11 51 78 6 28 60 86 13 14 23 15 48 37 52 16 61 20 5 45 -Card 68: 16 54 52 48 1 70 86 50 15 9 | 59 85 50 1 8 29 37 67 70 72 2 47 30 48 15 62 27 75 88 84 55 66 51 73 80 -Card 69: 4 34 79 38 5 94 96 89 33 92 | 77 45 98 86 88 68 22 21 76 35 69 84 58 46 95 38 73 87 9 94 15 85 61 29 11 -Card 70: 96 19 50 33 80 84 75 25 93 74 | 3 81 39 52 32 54 4 47 8 12 77 6 24 78 57 71 99 98 17 60 86 87 14 2 95 -Card 71: 44 13 33 51 90 18 41 3 38 46 | 84 99 74 81 60 89 92 93 20 57 91 97 38 85 33 44 32 16 78 47 31 26 65 36 10 -Card 72: 40 1 12 22 50 38 43 21 27 7 | 47 99 24 73 62 57 38 67 13 33 10 68 12 82 89 61 88 51 15 54 28 92 77 65 76 -Card 73: 46 13 4 77 88 43 27 20 16 23 | 59 45 96 62 50 56 93 75 43 97 14 99 52 9 25 91 92 34 1 81 49 84 33 35 38 -Card 74: 62 3 52 1 69 72 73 79 64 28 | 99 94 23 59 58 65 90 76 96 95 9 93 50 56 38 61 80 84 31 46 41 82 54 85 43 -Card 75: 99 21 75 69 43 59 61 93 22 76 | 39 66 34 76 74 49 96 68 99 84 59 21 61 87 69 73 43 22 18 93 88 83 75 13 58 -Card 76: 97 60 56 9 71 42 82 51 68 29 | 33 71 56 66 74 73 9 77 21 57 47 61 92 68 60 17 32 22 29 82 55 1 37 65 95 -Card 77: 74 99 79 82 22 62 81 23 20 48 | 97 58 75 28 48 5 83 99 15 23 62 26 81 74 82 29 43 70 96 73 22 25 79 20 11 -Card 78: 87 27 89 26 18 44 5 29 80 71 | 97 88 48 23 36 26 61 74 94 72 79 95 78 96 7 30 28 57 91 86 47 65 3 34 31 -Card 79: 73 14 36 3 13 30 56 71 80 26 | 42 89 57 98 34 26 31 94 73 71 3 35 36 13 24 68 14 2 85 43 91 30 79 56 80 -Card 80: 31 66 25 43 22 28 34 93 84 71 | 88 11 33 17 27 22 12 18 92 49 82 26 3 20 24 31 93 46 67 89 85 76 98 60 81 -Card 81: 19 53 29 87 83 73 3 23 77 46 | 1 64 17 84 60 61 36 42 80 18 39 14 81 88 11 56 73 93 44 24 51 28 32 16 35 -Card 82: 88 56 52 30 81 58 16 29 33 7 | 68 52 46 19 88 29 50 64 16 48 56 59 81 7 74 30 15 94 42 32 65 4 14 33 58 -Card 83: 35 68 10 89 13 54 73 99 57 37 | 5 43 98 72 18 97 37 96 44 45 49 46 74 91 57 89 34 80 84 39 21 90 54 50 2 -Card 84: 55 20 37 59 73 3 54 27 9 46 | 38 31 12 48 43 95 65 8 24 68 85 92 83 96 57 30 40 89 44 84 94 93 87 6 26 -Card 85: 24 89 68 66 53 13 32 21 35 37 | 63 21 9 13 65 32 68 3 24 35 80 18 8 66 40 1 95 37 89 71 41 60 91 79 67 -Card 86: 14 26 59 87 89 2 43 6 58 82 | 50 82 26 32 66 98 13 77 81 59 52 24 58 6 89 95 8 47 3 83 87 73 43 2 14 -Card 87: 28 64 26 16 98 50 9 90 22 14 | 22 90 80 9 69 42 78 16 14 3 85 89 2 88 59 53 28 65 38 98 97 54 92 51 40 -Card 88: 74 15 77 76 57 41 89 48 69 99 | 54 15 9 38 22 21 65 59 79 25 57 75 70 85 93 81 41 29 92 77 46 72 31 90 86 -Card 89: 16 13 22 17 65 72 12 33 96 6 | 2 25 67 5 1 98 9 50 56 11 92 99 66 7 89 70 49 77 59 87 60 76 96 85 37 -Card 90: 60 26 2 36 25 79 6 57 68 94 | 68 39 3 22 1 59 87 20 93 21 80 36 83 10 44 50 28 26 41 25 34 90 6 15 64 -Card 91: 59 70 54 71 61 73 87 34 33 76 | 24 48 27 47 35 96 56 69 73 59 54 76 98 68 71 61 17 41 46 31 14 19 45 75 78 -Card 92: 17 7 4 96 81 55 64 13 73 95 | 3 13 95 40 29 94 58 73 17 67 77 2 42 83 59 11 49 78 47 60 98 64 26 10 5 -Card 93: 41 96 8 12 10 94 68 64 37 77 | 45 88 24 74 19 56 34 70 69 10 41 26 6 1 66 80 5 90 73 28 48 75 67 22 87 -Card 94: 12 61 83 85 74 14 89 95 93 25 | 6 44 62 84 17 94 23 72 16 39 30 76 83 87 8 98 1 21 78 63 13 3 57 35 52 -Card 95: 60 26 74 15 7 51 57 68 33 39 | 91 60 6 30 96 74 8 37 84 73 23 58 65 32 77 34 25 24 47 61 62 2 87 56 35 -Card 96: 81 41 18 12 34 82 7 4 89 24 | 94 39 83 57 60 69 98 29 52 76 74 63 13 11 50 92 30 68 22 44 77 99 38 72 67 -Card 97: 82 81 60 11 91 48 77 38 49 17 | 21 90 36 14 57 61 72 68 75 80 5 29 19 86 37 47 45 53 32 54 10 35 52 9 31 -Card 98: 21 57 80 13 20 11 72 76 85 93 | 52 7 72 71 92 85 2 96 39 62 84 45 30 17 95 57 34 11 28 46 21 99 29 80 77 -Card 99: 7 37 26 23 99 74 38 40 90 2 | 14 68 33 40 21 29 7 39 28 38 37 80 26 5 75 91 88 44 93 74 2 23 34 99 90 -Card 100: 49 2 30 5 88 53 18 28 13 9 | 52 24 11 61 96 94 13 55 53 44 5 72 41 66 77 56 36 90 38 20 45 21 54 42 39 -Card 101: 8 67 46 27 64 65 58 41 99 45 | 41 35 81 34 93 51 39 88 98 9 45 67 84 26 44 91 22 46 7 20 8 36 27 61 83 -Card 102: 67 4 42 94 16 69 27 2 65 35 | 5 94 58 16 61 86 47 74 76 88 35 91 37 8 79 64 17 33 7 97 22 55 38 98 14 -Card 103: 35 71 33 16 10 14 87 45 55 73 | 73 38 33 16 88 44 35 22 14 61 64 45 8 75 53 62 71 55 85 87 10 4 28 79 23 -Card 104: 45 59 22 17 46 25 23 56 94 16 | 14 94 45 17 98 35 22 46 48 16 56 25 24 93 74 31 12 59 42 95 87 76 32 23 81 -Card 105: 57 42 86 2 12 19 66 31 38 92 | 86 71 92 3 70 15 35 43 19 57 38 53 73 66 16 42 31 37 60 75 2 18 34 21 12 -Card 106: 84 99 11 56 54 46 36 75 80 1 | 53 51 81 70 2 73 46 62 79 80 34 91 96 99 90 55 56 50 26 7 86 74 3 43 68 -Card 107: 65 18 86 33 42 59 2 96 64 14 | 73 56 18 59 53 88 11 86 70 82 94 79 64 14 5 33 42 36 96 65 51 2 47 25 72 -Card 108: 52 28 55 29 74 89 91 36 18 82 | 66 91 18 90 52 45 2 28 47 19 32 29 89 6 79 25 55 82 36 3 51 13 75 43 44 -Card 109: 10 49 37 32 38 53 20 2 67 93 | 80 76 31 58 3 11 7 20 77 49 17 52 78 37 70 97 6 46 18 85 19 91 35 8 43 -Card 110: 28 57 67 95 96 72 97 21 38 46 | 94 70 27 1 32 57 72 95 61 75 22 12 52 30 83 10 33 78 24 28 66 93 16 23 79 -Card 111: 77 49 11 27 44 82 51 79 58 39 | 42 90 56 71 25 94 27 23 92 96 43 24 80 29 63 8 11 58 30 64 1 84 91 44 9 -Card 112: 71 77 10 64 69 31 2 59 57 7 | 4 66 20 30 89 99 1 86 21 61 41 93 6 15 40 18 92 73 25 56 48 46 44 84 94 -Card 113: 98 30 10 20 88 51 15 5 23 40 | 89 11 27 53 57 99 93 77 54 2 88 17 72 42 49 90 19 39 86 92 76 55 87 25 1 -Card 114: 80 29 60 53 19 36 12 31 22 6 | 37 32 50 44 73 78 41 13 46 98 38 93 86 83 23 20 82 48 70 33 5 71 66 97 65 -Card 115: 14 78 64 49 38 22 26 46 67 99 | 95 66 32 39 7 15 20 94 17 65 33 21 99 85 74 76 27 82 43 19 49 35 47 88 97 -Card 116: 99 88 19 41 44 31 20 65 4 15 | 26 80 72 18 91 50 9 40 30 44 71 24 92 57 66 36 22 20 85 58 52 48 37 15 2 -Card 117: 55 12 5 54 83 91 51 43 48 62 | 73 45 87 78 72 23 40 1 2 49 71 79 36 8 18 21 86 97 89 27 60 31 28 41 6 -Card 118: 68 94 29 44 59 32 63 42 12 15 | 20 46 76 75 98 14 62 7 28 4 99 65 6 26 95 89 60 83 19 78 96 37 59 91 53 -Card 119: 64 23 62 48 84 46 82 10 53 79 | 60 20 58 33 38 97 12 85 74 36 24 99 9 81 56 15 71 69 1 19 95 68 7 26 54 -Card 120: 74 59 32 56 49 20 95 21 35 4 | 49 42 13 44 69 33 14 99 66 19 27 9 89 60 65 90 74 41 82 58 92 17 16 1 6 -Card 121: 87 83 4 51 17 12 71 73 9 31 | 83 1 17 94 4 56 23 10 31 12 14 39 26 61 70 87 9 71 51 67 73 38 90 78 59 -Card 122: 90 20 15 22 54 89 8 33 81 36 | 46 60 4 92 35 1 28 61 43 10 8 36 50 34 72 65 63 82 49 15 54 44 45 13 58 -Card 123: 82 21 25 95 41 64 62 31 63 27 | 5 34 25 36 83 1 53 2 19 65 24 70 63 60 41 31 92 11 52 43 96 64 42 4 38 -Card 124: 68 54 67 15 80 34 26 93 10 3 | 35 66 68 54 10 31 40 93 4 90 67 2 57 34 39 80 26 72 41 81 46 15 16 3 87 -Card 125: 35 61 2 95 30 55 8 13 80 78 | 82 14 58 66 65 1 90 76 44 80 10 84 96 72 88 56 27 9 3 22 16 95 86 83 93 -Card 126: 59 2 72 67 52 17 93 57 43 83 | 2 97 23 93 56 45 57 72 52 67 59 77 43 84 95 90 68 99 81 5 17 1 15 47 22 -Card 127: 46 3 47 78 98 52 62 73 70 88 | 82 16 66 93 38 62 70 81 2 60 35 34 52 84 32 79 50 4 61 1 42 25 54 24 97 -Card 128: 17 9 68 52 36 54 16 98 39 61 | 33 42 59 6 57 73 76 48 15 86 36 61 99 47 68 3 62 41 26 39 96 22 7 54 85 -Card 129: 8 24 69 14 54 11 49 72 38 94 | 61 44 67 37 18 70 64 19 29 89 34 97 75 33 74 10 12 28 98 92 99 73 43 41 51 -Card 130: 59 60 29 90 27 53 18 83 70 57 | 97 34 8 1 45 89 85 24 19 61 68 62 95 91 52 82 35 40 58 2 23 77 55 48 93 -Card 131: 90 50 34 81 52 37 9 86 3 47 | 39 33 97 10 72 46 5 96 77 86 16 19 11 64 94 75 9 45 58 6 35 15 14 32 28 -Card 132: 35 54 62 69 75 30 40 74 43 44 | 11 32 66 99 64 16 34 13 62 79 41 17 46 43 82 72 14 52 92 48 30 98 88 37 27 -Card 133: 21 7 47 91 75 86 73 19 49 54 | 88 62 45 70 89 57 99 41 4 9 27 15 77 83 67 28 10 69 52 68 66 34 30 38 74 -Card 134: 84 31 7 87 6 38 46 27 26 66 | 65 17 47 71 16 33 15 49 20 43 2 51 92 9 21 63 1 91 54 94 18 98 23 48 97 -Card 135: 91 63 53 17 6 66 71 29 47 96 | 67 69 77 83 31 79 92 93 20 87 45 10 22 30 5 75 56 24 3 44 82 27 8 19 61 -Card 136: 7 57 22 98 3 36 93 13 27 80 | 7 96 55 93 59 31 89 58 52 57 37 29 54 17 62 46 25 14 92 6 27 50 39 76 26 -Card 137: 82 50 55 30 12 78 69 85 29 79 | 55 97 1 42 41 28 25 29 30 17 84 69 52 78 79 46 82 72 86 40 2 50 12 85 70 -Card 138: 67 17 38 39 16 69 18 45 82 20 | 68 24 28 6 18 69 77 38 16 10 73 26 85 82 53 3 30 17 39 45 42 20 84 36 2 -Card 139: 46 90 6 73 4 83 69 47 59 89 | 69 61 89 8 53 86 54 79 59 46 25 2 45 90 84 5 30 28 6 52 4 47 73 12 83 -Card 140: 55 29 59 71 40 95 56 50 64 98 | 74 49 63 20 22 66 35 11 29 51 56 50 98 64 55 95 59 83 40 90 47 71 32 41 57 -Card 141: 52 25 71 49 39 63 84 86 43 1 | 34 27 39 53 17 75 6 99 84 38 82 91 25 96 37 29 54 59 7 56 36 89 41 24 11 -Card 142: 80 38 65 46 8 52 7 97 21 81 | 77 26 81 50 3 79 65 40 75 8 43 36 10 39 52 7 94 85 46 20 91 19 69 38 80 -Card 143: 47 76 1 79 38 15 74 96 44 51 | 86 66 83 60 21 70 48 13 16 56 35 45 47 25 84 24 85 99 1 96 51 23 10 20 53 -Card 144: 82 10 89 17 13 95 90 26 39 80 | 70 25 24 12 7 93 43 55 27 66 42 62 5 79 86 95 75 53 3 50 60 8 65 29 18 -Card 145: 68 19 72 53 15 46 87 23 93 29 | 28 18 60 74 10 26 6 69 86 90 21 76 27 58 25 42 80 98 57 84 13 4 61 45 55 -Card 146: 88 19 68 96 93 54 17 75 47 29 | 66 72 47 93 64 12 54 10 55 3 62 45 24 26 69 53 71 30 78 92 86 34 85 70 99 -Card 147: 92 95 68 70 56 79 52 86 94 74 | 65 45 30 43 60 76 3 4 84 57 15 38 11 58 17 27 69 98 31 49 91 85 68 7 2 -Card 148: 87 75 20 44 51 59 69 29 98 84 | 66 92 60 74 80 21 96 25 73 90 89 38 11 94 79 93 61 40 82 72 34 50 78 1 39 -Card 149: 79 17 94 63 29 9 36 85 32 90 | 5 27 92 10 87 75 95 57 78 8 61 40 56 64 67 26 60 31 3 42 74 6 84 50 45 -Card 150: 36 35 60 78 34 94 89 38 51 2 | 59 71 24 46 27 53 62 5 65 50 33 4 93 97 58 76 72 14 1 63 96 74 29 87 98 -Card 151: 76 78 48 25 89 81 24 54 62 46 | 65 24 25 31 89 46 42 80 76 59 54 47 81 43 48 78 92 35 99 29 62 15 2 95 51 -Card 152: 80 40 54 29 18 38 28 6 71 88 | 10 77 76 45 42 37 72 56 24 79 4 84 74 65 12 89 5 57 44 33 19 61 9 16 21 -Card 153: 27 98 50 68 10 81 9 1 56 65 | 6 21 2 39 76 1 71 7 81 50 98 93 48 66 85 9 11 65 43 68 56 12 25 55 27 -Card 154: 85 73 71 36 74 53 4 16 21 77 | 71 83 77 44 81 50 4 38 78 73 27 15 86 74 85 36 33 75 52 16 59 76 19 21 53 -Card 155: 51 2 84 71 11 20 34 62 96 30 | 19 72 62 2 1 77 27 6 30 84 55 11 75 23 63 28 20 7 51 36 96 34 91 71 95 -Card 156: 82 17 14 3 10 47 94 46 8 81 | 13 63 17 54 81 14 3 79 47 99 11 7 46 32 58 8 74 65 10 68 48 15 82 94 84 -Card 157: 60 29 13 49 55 19 68 63 83 54 | 84 56 83 14 33 54 38 63 29 74 19 11 51 49 32 53 55 80 12 68 79 13 69 30 60 -Card 158: 13 2 78 61 55 16 10 68 49 15 | 14 33 49 80 15 13 68 91 60 69 61 99 8 10 12 82 94 55 87 77 37 32 4 16 85 -Card 159: 46 7 54 82 9 98 38 88 71 6 | 97 30 87 73 32 79 52 65 51 44 94 1 91 89 20 50 96 69 34 27 80 5 2 18 56 -Card 160: 69 30 71 29 27 83 51 16 75 54 | 15 73 3 58 52 83 71 19 57 46 91 74 8 89 27 69 40 56 44 31 24 35 21 82 2 -Card 161: 44 88 72 86 20 49 18 43 5 70 | 20 25 30 59 85 78 90 70 96 24 74 34 49 53 46 28 86 80 44 72 5 37 13 55 36 -Card 162: 52 23 46 90 73 70 31 5 89 1 | 90 54 69 47 92 33 70 62 51 75 46 97 81 5 52 58 7 64 87 18 73 23 68 36 89 -Card 163: 71 64 75 3 49 55 62 16 11 76 | 96 67 29 92 82 35 70 28 20 39 43 5 59 7 91 90 62 26 33 1 52 15 2 46 80 -Card 164: 94 25 75 78 71 5 26 10 93 35 | 2 81 24 30 82 85 50 58 78 23 79 22 67 34 40 62 42 10 38 25 31 61 19 36 41 -Card 165: 2 4 95 36 78 70 49 6 61 14 | 38 28 87 33 24 4 30 92 70 83 93 79 2 19 21 36 45 42 49 54 14 57 53 50 88 -Card 166: 63 77 19 36 40 67 65 60 38 57 | 55 11 67 24 46 36 52 48 33 79 37 19 87 94 49 26 51 3 62 75 6 47 60 13 77 -Card 167: 17 31 42 76 78 98 51 4 24 47 | 20 34 21 2 73 37 95 44 81 74 46 69 33 63 35 87 91 22 54 80 58 53 75 71 72 -Card 168: 35 29 4 38 2 84 11 51 82 95 | 54 91 22 49 47 5 99 3 92 76 97 81 67 80 17 98 19 31 41 12 61 78 23 26 39 -Card 169: 31 9 40 97 67 8 95 55 98 39 | 54 87 51 9 43 65 61 29 89 92 90 97 10 45 78 27 71 38 75 96 60 57 16 3 30 -Card 170: 57 13 36 35 34 9 47 43 69 77 | 13 26 25 48 39 56 53 12 22 1 23 46 54 30 4 81 97 73 17 88 2 91 14 92 79 -Card 171: 94 31 8 53 93 92 99 86 38 50 | 61 73 14 87 40 48 26 58 65 17 41 23 63 78 34 62 36 66 79 96 28 57 1 11 45 -Card 172: 65 32 15 44 58 62 89 47 39 72 | 75 77 12 6 74 84 39 94 48 49 61 83 5 78 79 19 41 91 95 27 8 34 3 32 88 -Card 173: 41 62 58 74 21 43 95 76 86 61 | 31 81 17 36 43 76 55 9 41 4 29 11 3 62 35 97 46 95 58 61 50 18 74 86 21 -Card 174: 51 98 49 10 63 17 29 89 77 90 | 34 42 85 63 2 59 38 49 17 81 9 90 72 30 77 68 89 15 10 51 29 25 98 52 88 -Card 175: 86 66 20 51 68 18 9 54 87 40 | 93 64 62 4 65 44 51 20 86 54 10 40 25 9 76 72 55 24 29 18 66 80 33 68 87 -Card 176: 78 29 90 46 47 31 83 26 51 25 | 95 31 19 29 33 59 84 46 61 25 34 44 83 89 26 56 98 54 53 85 51 78 90 64 47 -Card 177: 95 56 62 13 87 93 1 60 98 80 | 67 24 57 95 60 7 13 56 87 98 62 33 93 15 45 1 47 92 35 80 55 36 46 73 18 -Card 178: 21 99 2 36 57 68 73 34 32 31 | 68 73 15 31 32 72 81 60 99 2 71 58 55 20 21 67 8 51 78 57 42 9 95 34 49 -Card 179: 91 34 61 60 97 12 99 44 25 67 | 17 43 67 82 44 7 26 98 61 51 95 23 84 56 34 97 25 12 46 50 91 80 75 60 99 -Card 180: 47 36 46 99 85 40 64 84 42 54 | 15 40 90 70 49 21 32 72 43 14 46 95 92 80 76 38 75 82 44 84 47 93 6 54 16 -Card 181: 63 50 87 79 76 74 26 17 38 77 | 68 8 46 62 52 26 11 56 17 41 3 54 94 50 1 77 21 74 6 79 97 40 15 29 63 -Card 182: 7 64 1 63 8 62 78 56 48 55 | 44 21 66 78 38 37 63 31 55 64 70 67 1 7 8 48 49 61 11 65 75 95 17 56 20 -Card 183: 70 14 76 55 85 32 58 43 30 47 | 23 26 13 58 78 44 32 73 30 96 14 93 40 70 85 55 76 42 7 43 59 71 48 47 39 -Card 184: 79 3 56 71 90 21 72 97 33 94 | 27 21 13 49 8 67 64 70 56 45 86 52 46 58 1 15 22 71 80 57 44 83 60 20 87 -Card 185: 49 76 37 2 56 67 47 52 53 32 | 82 44 46 78 70 16 62 59 73 85 65 58 24 63 83 29 30 50 60 31 18 80 9 94 10 -Card 186: 52 33 62 15 9 54 96 65 17 34 | 78 84 59 33 62 10 15 34 74 53 56 46 55 85 9 61 17 52 96 39 65 41 36 22 12 -Card 187: 91 42 64 39 98 6 69 78 81 73 | 2 90 91 41 73 95 28 25 10 20 77 64 81 66 97 74 82 99 57 96 65 93 40 67 76 -Card 188: 86 40 7 4 58 43 17 42 3 41 | 51 20 19 46 77 25 48 87 72 75 33 1 11 95 59 12 24 37 93 73 30 92 69 35 84 -Card 189: 55 88 58 95 53 98 61 14 99 32 | 88 92 59 43 10 48 24 34 2 13 96 39 52 89 82 57 98 55 58 8 56 14 16 21 32 -Card 190: 98 92 36 82 35 16 30 87 97 34 | 39 4 34 29 92 48 73 88 15 89 32 80 36 19 98 63 82 16 2 11 49 21 44 18 79 -Card 191: 70 77 87 90 57 25 40 15 1 21 | 78 88 39 51 86 87 3 52 7 19 74 80 71 91 70 75 23 65 45 49 15 18 4 54 55 -Card 192: 56 92 22 12 49 58 65 75 4 13 | 19 13 96 83 26 11 48 90 31 20 8 97 73 32 43 10 74 9 92 89 29 72 77 6 56 -Card 193: 96 71 66 59 31 65 18 64 98 2 | 60 9 28 45 41 90 85 22 89 18 88 65 74 4 99 33 70 25 53 47 35 16 38 24 98 -Card 194: 95 79 4 68 41 28 66 57 48 63 | 34 23 36 1 25 35 78 8 81 61 26 99 67 37 30 39 10 13 27 74 85 92 20 65 32 -Card 195: 41 83 10 73 51 22 94 89 69 24 | 87 61 32 58 35 33 30 66 59 60 5 45 28 72 37 90 12 46 19 25 17 16 31 57 47 -Card 196: 47 13 6 72 90 41 21 91 26 89 | 19 46 23 31 2 95 82 49 42 62 8 98 55 45 48 24 70 59 18 71 88 81 35 32 43 -Card 197: 28 94 70 24 89 47 20 97 73 16 | 73 66 16 28 61 41 47 76 5 96 70 17 72 89 91 77 32 19 94 42 97 88 24 80 20 -Card 198: 38 14 72 57 28 61 58 83 95 34 | 28 16 61 82 68 54 38 69 6 58 57 63 18 83 67 95 27 39 76 74 13 14 91 72 34 -Card 199: 9 98 46 14 29 54 74 88 47 56 | 93 23 78 26 19 20 99 38 39 7 13 50 90 22 66 89 87 73 29 24 53 8 40 14 63 -Card 200: 46 67 91 4 68 40 17 28 5 79 | 21 68 28 79 17 98 59 93 5 67 27 84 43 46 91 86 80 45 42 4 40 52 35 89 19 -Card 201: 76 11 20 45 41 85 27 90 86 60 | 86 41 21 11 17 96 40 62 59 64 36 90 35 49 85 93 60 43 8 12 97 76 45 44 20 -Card 202: 91 18 87 23 12 5 15 7 93 75 | 22 56 30 62 19 53 8 59 32 55 60 76 96 95 50 66 26 40 29 72 35 27 61 58 33 -Card 203: 34 37 15 89 9 24 72 93 76 1 | 21 43 19 56 91 30 83 62 60 28 23 42 90 97 78 94 32 10 25 84 58 63 27 54 38 -Card 204: 27 15 36 61 35 83 86 1 20 58 | 35 20 32 87 27 75 40 86 15 58 48 45 61 83 66 24 18 36 5 78 1 77 64 52 7 -Card 205: 28 98 47 86 52 91 34 41 79 85 | 60 41 74 79 25 29 20 8 86 99 19 13 89 39 80 34 69 85 36 4 98 49 91 64 33 -Card 206: 97 10 61 28 81 83 12 87 33 91 | 10 22 55 32 63 68 40 5 11 86 43 2 90 66 37 99 12 19 81 17 13 94 88 27 95 -Card 207: 74 80 72 2 26 12 90 68 21 17 | 72 65 36 35 82 96 73 58 69 77 8 47 5 17 26 90 80 9 78 39 16 67 79 61 74 -Card 208: 57 81 71 67 87 80 40 39 95 98 | 91 92 16 67 90 78 84 77 24 80 7 83 30 45 42 37 3 4 21 79 68 58 52 71 27 -Card 209: 89 62 13 17 84 26 78 81 79 8 | 49 77 71 68 8 97 1 47 22 74 96 62 26 6 27 19 18 32 46 13 79 93 52 17 90 -Card 210: 74 87 27 78 36 54 70 31 41 97 | 83 33 11 41 72 97 23 68 17 70 54 12 27 4 80 78 51 15 35 87 62 89 74 95 52 -Card 211: 94 7 17 66 47 13 9 89 5 28 | 74 89 79 8 66 52 59 94 11 69 20 71 35 96 90 7 2 21 26 91 27 46 93 51 28 -Card 212: 55 41 84 46 83 4 87 24 75 56 | 29 6 93 32 51 7 71 20 88 3 37 72 62 40 66 38 90 85 9 74 10 31 78 27 44 -Card 213: 86 21 88 6 39 9 47 1 38 34 | 76 88 46 84 27 73 15 6 86 79 7 95 51 5 92 93 9 28 58 98 42 74 38 61 37 -Card 214: 34 62 79 39 97 8 78 81 86 18 | 20 7 3 32 28 76 25 40 80 66 77 62 27 13 95 15 14 48 64 60 54 31 74 97 58 -Card 215: 69 15 78 85 50 51 57 71 74 58 | 63 79 4 13 94 97 17 10 25 38 87 33 27 86 75 76 99 23 36 35 47 64 41 46 84 -Card 216: 2 39 13 72 47 45 38 37 3 89 | 67 12 37 18 69 8 60 80 55 6 17 96 7 74 10 23 50 72 15 92 95 41 21 32 35 -Card 217: 39 78 45 4 20 96 26 87 55 1 | 7 91 37 48 83 59 53 27 16 78 49 90 61 81 92 15 17 46 62 73 42 8 9 50 82 -Card 218: 32 2 98 53 69 96 76 79 7 50 | 9 49 16 21 70 6 44 34 47 41 93 58 95 81 66 65 4 62 57 30 90 53 10 89 25 -Card 219: 74 23 73 99 60 87 45 75 70 85 | 32 64 31 27 67 46 29 92 34 76 37 40 35 95 50 86 30 63 42 69 68 83 61 55 62 diff --git a/day_4-1/input.txt b/day_4/input.txt similarity index 100% rename from day_4-1/input.txt rename to day_4/input.txt diff --git a/day_4-1/Cargo.toml b/day_4/part_1/Cargo.toml similarity index 100% rename from day_4-1/Cargo.toml rename to day_4/part_1/Cargo.toml diff --git a/day_4-1/src/main.rs b/day_4/part_1/src/main.rs similarity index 93% rename from day_4-1/src/main.rs rename to day_4/part_1/src/main.rs index 2fd88ed..b6e0980 100644 --- a/day_4-1/src/main.rs +++ b/day_4/part_1/src/main.rs @@ -1,5 +1,5 @@ fn main() { - let input = include_str!("../input.txt").trim_end(); + let input = include_str!("../../input.txt").trim_end(); let mut result = 0; for line in input.lines() { diff --git a/day_4-2/Cargo.toml b/day_4/part_2/Cargo.toml similarity index 100% rename from day_4-2/Cargo.toml rename to day_4/part_2/Cargo.toml diff --git a/day_4-2/src/main.rs b/day_4/part_2/src/main.rs similarity index 94% rename from day_4-2/src/main.rs rename to day_4/part_2/src/main.rs index 523159e..9399bbf 100644 --- a/day_4-2/src/main.rs +++ b/day_4/part_2/src/main.rs @@ -1,5 +1,5 @@ fn main() { - let input = include_str!("../input.txt").trim_end(); + let input = include_str!("../../input.txt").trim_end(); let mut extra_cards: Vec = Vec::new(); let mut result = 0; let mut i = 0;