diff options
author | j-james | 2020-12-06 06:47:25 +0000 |
---|---|---|
committer | j-james | 2020-12-06 08:36:58 +0000 |
commit | 4a6a134bad843ed432491f140f4439f80dca5578 (patch) | |
tree | 2742778b63d1e07cd946c9f3694285aac9862108 /2020 | |
parent | 38e25b7099338fd06af09bf37dbe2a2badb8d310 (diff) |
Day Six
Diffstat (limited to '2020')
-rw-r--r-- | 2020/input/six.txt | 2061 | ||||
-rw-r--r-- | 2020/six.nim | 22 |
2 files changed, 2083 insertions, 0 deletions
diff --git a/2020/input/six.txt b/2020/input/six.txt new file mode 100644 index 0000000..1f69305 --- /dev/null +++ b/2020/input/six.txt @@ -0,0 +1,2061 @@ +bdmceunt +ubcdjqvnmte +mcgetfndul +dcenmtu + +ldy +dy + +wnghmqt +zjhwmabg +kmwhisgy +hwvomngqj + +g +g +c +g + +nzybqaluhwisftxorjpc +rqtwhcxlsbopfagnzuy + +tyqlwbmp +ymwbflpt + +pwlicgouzasvyfdnexrkj +sxljwrgcudiokafpvneyz +chlunzgxrmdkwafesiopyjv +ucroefjwkyvizlnsdpxag +tcoexadilzgsvfurykwjbnp + +exwjgcyrh +iwykdecht +cnlhwteyq + +iuksonavgw +svpernca + +svdmzjxt +esjtlvzdx + +fp +pf +pf +pf +fp + +jctenvirpzkql +vznrijpeckltq +vtlkrnizqjexpc +tejcqrikzvpnl +nrkplvjqiezct + +oghvzblwityupknreqsmcdx +yhsreickxdvzawmoblqtn + +xfmsvg +svgxjth +sghvxz + +qblvk +wlq +qvlr +ql + +bizdgentky +rdaibmzk +pzbikd +zjbokdi + +ciml +ilcm + +buqszhwomiapydlrvj +lsmjhvwqaytubizdorp +voiajpmldzhwuqysbr + +bwxjzcfphgerkmvadq +dgwkabvzhjrxecpfqm +mehrqdbfkjzpgxwvac +rvqcajzgpxwkdfbmeh +qarhbmjfwgkcpzvxed + +uqiacmszejlbwtypdkv +lsydvwcqepkbuajzm +hwzmojabkspvuecxyqdl +wmecukavtqjpbyzlds + +rudkfjscvip +jtkcsuvpribedf + +ok +aoz +on + +zpduxbregwjmsi +rjwmsezgbpxiu +jiergubzfxspwm +gibpsxjrmefwuz +iwmberjpsgxuz + +hrpxsvct +qstpcrh +slrtcvh +okeazghcywtnsrmf +hcsrt + +fuzypinhrejb +fhzneyjuprib +feubzprxniyhj +irpfnyuzbjeh +zuyjbkvinrfehp + +ljbadu +jublrsad +ahbjldu +ulbadj +jaudlb + +n +z +i + +i +i +i + +gliunjp +pijmn +bsjanptoy + +of +s +s +p +s + +fltiuvnrwac +wtkanuefiqrcglv +nifwrhtcvaul +cwtrnulfvia +brvfntcilauw + +jbq +bjq +bnjq +qjb +jqb + +oibysa +xuzlrfomt +agpnovwejcd + +tj +ujtf +xtjzk +tj +jt + +uvah +uvha +hvawub +huav +vhau + +jqdgc +dcgqj +djgcq +jcqdg +jqdcg + +xusjhdeopfmrvnqawgtkcz +naizewjvqtdsmuxkhpcf +qkfmztjsvhpudxcawnie +iftwcxkajsdezhlmqpyvnu +bxuwnsjcptkedhzmavqf + +ydpzijcovftlerhkmuxbwsn +fiupwytlkzbejxrvhondcms +wdcpuzylmsrvjneohxkbtfi + +s +s + +erbtmsdilvgofpy +ysmdvrltebfgiop +pzyeluarbdtsmgivof +mlpftgdsyboierv + +yrxkqvgjfzpb +uzkyqlgdvnha + +ruwjhkobgsdi +nmzvqw +ncwaptxy + +swixmydhbuz +zdhilnmusxbwgy +mbszuwdilfhygx +uwhbydfszmxi +tqcvuyimshzpwbdxkr + +hspbfvqmejd +qrfepmvsb +bmzsveqop +vqwsgpmcebl + +wou +mobz +moz + +cyifdlqnsxvwpmatghojzrk +hxcovaeuqprsdfjngklizy +xzkpfvgodaqcslyrjinh +dyhzkrxgielnaqfjvcosp + +qahocjw +vltzomjhi + +mqdwel +eqmwld +mznewqld +delawmq +dqmphouwel + +wpmcuxjvgszdtreonlfbah +ulztvqcsdfyxeghopa + +ytbcfevolhdrm +oftmldehv +hmivltefdo +fvhtemldo +omvedfutihl + +ejkywctsqzogpaxumifdr +sojdrqygmxkiuehwtcnpl +jqkpamrsgdexotcuiwfy + +cokhgvl +vtkcog +ckogv +ogcvk +hcguvok + +deoti +eioutd + +xgyewvtpz +lnvgskitepzxcf +evaogzptqx +phmtyzvgxrej +vbeptgxdazh + +n +n +h + +mgrhjzxua +xgzmnujrah +ajzrhpxmgu +zhjgapqmuxr +xjmaghwutrz + +xdt +xd +ynrd + +guwlqezraonctsxb +bwntarlqescgozxu +xawrtceuoqzlsnbg +sltxwaocbuzgqndre +lgbxtwcoazseqrmufn + +lxeq +elszgxq + +ztxwgcdakjbfromvspq +spqwajgctkrdxbfvmz +jymqrzxwdcfksvtpgab +xsvtqgkmwbdjrfpzacy +qscjtpgwvdbrxfakzmn + +nzaqihrtbej +viscbkherjnzad +nrmzjwbahleiy +abronmeizjh +rbhzejqpangi + +cjogrim +rqvcjuod + +cwlspitqbxzumefrdao +idretfzbcpywlmvuso + +qxvyahetbiw +lfjvdzuxrpk +sxvo + +nq +p +q + +prqawkgxutjhz +psgbeyi +pivfcgsl +dogpnm + +mdsfjtcxgrniq +siwdyjfc +sdjifc +ijscfd +jicfsd + +adilyhknj +injkdsyla +dkjynlrwi +hlkydjni +uzjkhynidl + +foypxdjn +hjokfnvuixydbt + +k +k +k +k + +cj +jlcegm +jc + +s +l +ts +dfr + +jaikpuvdemtxq +xadjqukipvme +kjiqxaemudpv +uqvikmpxajde +uxpikjdmvaseq + +jugtfdbchqnszvx +bqkjsfvtxdngczwu +entmuhjvcxfbgzsdq + +odibphqkt +iokdhptb +bthmkdipo +ihtpbkdo + +qcdbhupteosnwayxkl +hpwnytaoskxebuqlc +ywpcotxlbnsuhakqe +slkhxwnuyocteabpq +ksnchxoblauetwqpy + +d +df +d +d + +l +lr +lany + +mjc +cjm +mcz + +tipxdrkqmceo +zokcaivpdqwmrtu + +xenzkgyvoqmb +olqfuschr +rpqho +sdjoq +oqilf + +rby +byr +ybr +rby +ryeb + +jspe +spje +jdktpes +wspmje + +hflxveapdocuzryijsm +djyiapfzevhxsomucl +yflxpozvcsuaejhmi +icjuxpfloeazhmysv +spvyaemuzifxhjlocqt + +xdkhzetnvor +msaigyfqcpujw +baflq + +nktlogersybxdwzfhmv +xzbrfeloswdhnmtkyv +szoytlndmfwexrbhvk + +wcqgxubkontisalvdzry +qimvotrgdkwzpynxuascbl +xqoauzyvdtkcilbwsgnr +iobwtsazcxlygrqknuvd + +dtk +dt +btd +dbht +adwts + +ywtr +wytr +trwy +yrwt + +ifcvuj +vcptmujo +cuwjv + +ctelyspikfhrxq +kflsyxcqiptreh +pqlokhirteyxucfs + +phxfeqlrjau +hfujexpalrq +luxaherfqpj + +mcrdkiowygqhtfvsebln +swpbrfdnmlotvqckeigyh + +csitxmovjndarwzbq +rxnjspbacodvwqti +wsqbcjxrtviopnad + +lajieobhpduckn +bhpeodnyacilukj +vcnuerkloadghzjisp +nuejkcxdlpaoih + +xopdrnclqgm +hmbnrgxpqodvj + +gneuvhbla +obmgnah + +jldnecghafwqrbyzs +anfqszkdlt +szonfadxlq + +oxfpjsdzv +oshfdzpjxv +toljevyzsxkpfi +svfxjzodp +spxzovfbjd + +nzdglvc +vdpkglxn +gvldn +gcdzlnv +gdclnvs + +icn +nzci +icn +inc + +cotnvdbfz +vdzncfbwot +nbfzdocvt + +uqmpakywbf +kbcwozdfgna +sxikwheaf +wjtvrkfnoap + +zdcp +bvmztq + +ofmvxt +rocnw +uso +eoh + +ygkztajhcioqvp +dihxltjnwemszkubrp + +uamx +jcbrh +dfc +rcl + +kqtczyoumwxdasnpjflr +txfpladozuknqjsyrwmc +jzaofkmsxwrtpyunqcdl +ymfoctrdqxnkjwszplau +zfkwjyrtcalnsupqdxmo + +lnhobfxcjiuqwgszdyvearm +xmbwcyjhgouiqrnslfdaevz +hnafxjevbryidowszgqlcum +cedwlsniumjgbozfyaxrhqv + +tvdykamzgrhsnxwolb +sglrknozywhbxmatd +xykhnbgadrowszlmt +dxtykwnuebrshlomazg +zbosmaxngtfwrkhdly + +vjbmc +jbrxsl +jydbo +octjbvdm + +lptm +lpmt +ulthmp + +zwlqojedpy +ahmlocqezdj +qxuvdgslejknzbr +dlojiqfez + +detkibfasgzprclxuonqm +xzquscfpkrgbeimnoad +pdxmlgckionusbrfaezq +krhgsocupbnxqvdiaezfm + +qrucshkxvop +rchvqxuospk + +ykvechxdljbfo +elukfwztdpo +fkerdmlnoqszti +gazedospiltkf + +spqreaixfbgwmdvzotlyuk +vuxdpzoiegftbmkrqwnylsa +uafkvsiwxlorqyegpmzdbt +ywqmtdbeaurfgvpzilsxkoh +pdriefwgoykultqsbxmzav + +mesp +emg + +cfteouvqbrypdx +chtzikpbuoy + +mofq +monsf +orfm +mfwo + +ajcvsuylqn +uasqvpnjc +nusjvatqc +scvutjgqna + +rozcyatwspb +dcopbrhxatsyw +byfrosetadp +phgtosyrba +usbpqionktmyrja + +uopbflkv +tkpojfrs +fekohsp +fkpxoqidngwam +jklzcfpo + +gzuv +guvz +zvug +guvz +nuazvg + +q +q +i +ahps +m + +nqxvmst +sntvqx +qvsxnte + +eqfplswxjhzvamrki +larsfhwexpqzmijkv +imjpearxwfkhlsqvz +kpmijhefqlravsxwz +jivfrhaexdplwzskmq + +umgrvfjesz +zeufsjgv +gjndsuibpvf + +azhubfjtwepsxdnr +idwhpfbgatrzujnxes +jztxgbuhdapefornwis +nkzfxvrsbjpewahdt + +r +r +a +x +k + +lmoj +jlm +mj +zmejg +jm + +yecmu +ycm +cym +mcy +cmy + +umvhdk +edvuhaqm +vrmhdjnwu + +sudivkgmywjzqebrxolc +wjnrkxgiozbdplysumcev +lfkgzrjibudwseymtchv +wrzeamuklcgynjxiovdbs + +whe +px +t +x + +uaqpzjbkhxnw +qkztnwupjba +vbwkqanzujp +zqkalnbjuypw + +mhguqp +prgmqu +jqgmup +qmpgu +mqupgxow + +awhsfiqegyzrutlvdnx +sxihleagqydtfwrzvu +qhulydwrzigfsatxev +quanhygrpwfzedislxvt +tazyfmocvhdgsielwrubqx + +puwqojgflcyrhmdsae +mabnvgwtyzeh +gmhyexnawt +atwmehgzy + +f +t +vbm + +wnclejstoyzb +zusynbdljcowe +ozyjclbswnhev + +djitrswofkpbqvnge +gneplhcfoskdvwqjmy +gsjedfoxlnqwvpk + +k +k +zpsq +aeuiyflmwdxrgv +qtncs + +ptdicvugw +viwgptdhu + +u +u +gyu + +wdkoahcfql +cfqdhkgwao +qkwahomgfdc + +enuyibwskdzvprfj +nspriwdbjkuzefyv +bohwjvysrinkfdztuxpe + +asybpwuzvndmqfhjrxico +zcrmvunoxihwdqbsypfja +fjwpvbnaxdhycqoriuzsm +zjxyouapdsfnvrhbcimwq +vypsqdaunhjmirzwcxofb + +jcdiazq +jncqdzalit +jazqcdi +adqjczi + +vmjtbyg +jgnzfbv + +mdgelprjkyna +kejdnlrpaymbu +wakernjldiypm +rolyqamskjpetdnf + +qlxwzsvicbhjftrky +hqsievrjxywblkz + +metska +htasik + +uycdtvslri +rvuisld +uirysldv +vtdirolsu +uxlejzfvsird + +ai +cktfdej +ogyu +ahg + +eyzmjqxuvs +ezaywi + +ojlhpdamwzyitkfvrxce +yaipfhjtenwdzvmroxcluk +dthjilfmpazxcwekovyr +xjyzbdhscakovmetqglpifwr + +il +li +eil + +lho +oh +hgo +lho +oh + +pyqrwjhbstlfncagz +gjrypqzalhbtscfwn +hnqpgyavkswtbfrjczl + +uojimgvplskf +fvukglpjom +vgfblpjkdoem +pmlkfojvg + +ni +ni +ni +ignk +ni + +njadomgclsfqtwxkvprzb +xlfwetzdrojvsacqpkumyb +lqnctvgijkfrobmzwapxds + +sgiznhw +ziwgn +iwzng + +cwinsbmuxtpye +eocwxsnubmlipt +cmbinquxwteps +ipcxesbwmntuo + +iwc +wci +wic + +dbuoitq +dlmxgqkh +ysrwncj +gubmopeavzf + +ueaswrjhoiqzpbfcgdvykx +kxcidqofebrjpugavsyhwz +hrwjifpgyzqbextdkasvuco + +spri +nwqydhcsui + +plmbajvykne +cpnkixysmvb +nzhqgymwvdkub + +qaophvznrwtb +ufstgoin + +qzadr +drazq +qrdaz +qdzar + +jnciuqders +budqircesnj +uiqjbcerdns +csdjuqetrnki + +pwsdakyziotrlcv +hgdomnsrltziuvpwafqxek + +atpln +zpqlmswfe + +xwkn +xhabm + +ncqdwxrbaglymzuij +uqijdlmagyxnrbzcw +ozujlrnbcwdgamqyxi + +fpzigxaycl +zaiegyflcx +obdqmywgkfilrx + +lwhfregx +eglsxwr + +wxofzyajmqedluvh +qovdwlzjumfeax +ljmazuodwfvqex +xwmqeljfzuovad +jzqovdfmxwuela + +oybxacn +axbocyn +akbcnoxy +vmobgxcapyn +abnyocx + +zciyemdtajlp +dzaoyiremtjc + +epbuoadictvz +oaquibtd +lmtfuodabisk +tigdjarbycou +uxobdaiwtgz + +qctjabrzuxhodvmwsnpkel +pqsvhazdxjkbmtcyrlueown +jnkhdlqscpazuewrtxmbvo + +ztqjlwaochb +qbaztljohc +bjzchqtlaog + +xdykr +dxupk +xqldkvf + +wurtmcgd +vurdxwmcget + +t +t +t +xr + +lrweocgtzxu +gluxecrwzt +rcgtapuzelxw + +kauqnxfishldt +nxldiahquswft +dqxhulngjktafsi +xtkhuwqfisldan +iuzfxlpshndqat + +auhcoydpzgm +mghdyoczuap +zyudmoagcph + +kfimlruyxgsaqtjep +irmndslhqybogxtwa + +akmqgyzejbutx +rviaxuqtkbjgy +qtajybknegrmupx +ugakwhxbtysfdqoj + +ivosmflxetkcqynj +awzrubpg + +encflvksbdy +lcvdfsyekb +sjvkdfcymlbe + +h +h +pmbn +h + +pxbrzhgly +hjxbgreitap + +egmabfu +kmvntgilx +gtsxdmzr +zigomrcnp +lpmygsqh + +dwnhca +ancwodh + +hgf +x +x + +egibkplrm +ahybkjpmnudg +qmkbgxpc + +pwkjxztufoehn +gkyonajqvzitdwumc +kprtwzolbnuj + +srlg +b +b + +mxl +lj +jl +l +lu + +eqrjcypmb +lgckysxifp + +ebus +cus +esu + +czyrjmwgabtlh +ftlrbvhwj +tjlhbrqvw + +o +vcl +o +o + +fwadte +wloefp +hrcezxv + +rzkbthu +spfldaubitqvz + +lwpikf +jheziwfl +wlmfi +wlixfkbm + +hmqkypcid +fwbzrayumnsxvote + +qow +cowl +woi +ow +cwov + +zwldf +lmxowfd + +oygquwkvx +qwypfdxkogu +kuwloqgx +ukbgohnwzxtqr +xqkolugdyw + +dctqemxgpibuojhylnfra +hmplrfyautjnvbcioxgqde +dhomrlcxgnyiqeauftbjp +etgfoaynpjbdchrmlquix +niyxrqdapujtbglefocmh + +luhfomgkv +vogezmkxfhl +mfvlkanhgo + +cvtg +vct +ctvy +vgtcw + +xaqyk +acfuzoy +yohtpa +nyvgsaeb + +udarlsvfmw +btkhopyne + +caitfzrvhbxuwsejndg +bqdpmyhjkwlvoriu + +s +js + +rydjusfmvwobikxghpc +gypjxfvosrkbzwdm +oysfegxlptwrdbvqmkj + +hpfzxkcwimadlseubnygt +snzeycthklbpuiwxfaqmd +wlmihctzunbfesykxapd + +lepwritjdbnu +rnbjwhtpiul +ltnbvwrijup +tjnwiruplbd +bnkmjgpuwirlt + +tskzen +htzfsk +zksut +ztks +olikstz + +kuremliag +lgsmudykr +oxchwulmpg + +itdvnamlyuejscpfw +wdmnyesglfaiojucvt +wjyelscfvaumtgdin +nmdjelfuatiwsycv +nliywsaetjdvumfcg + +vxnbcjmlodarte +ljtedmxracbvon +svronlxdetjbcma +nedratmvblcxoj + +cgotwdni +nocitwg + +lk +kl +kl +lk +mlk + +ufdhnylrwas +zjmbvietgcpqko + +vefhtkwmrxpi +znktefxilmrwdo +rmxnkeftwohi +rwkmptxlfie +wqeamrkbxjgtyfuic + +tunfcsg +snufg +gnqxvsjfu +nugfs + +owrslxqvtjp +pjvlq + +mryaso +smrh + +hywrkaf +rfwhaky + +fdupzsgoekham +opfmtgedhkzaus +yheuafompdgksz +dmuzqkbxsalioehgpnf + +wcpmafdkzsbhnqr +cqkrmhwnpfbzsoe +zrckfiqpvbwmns +qmkbsgpolfcwrdzn + +anxzimf +sneohjlivd + +qmnrhgwbsxklpudz +gznwhbrqlupsdxkm +rkqhzwngsmdubplx +bunxrgwmdshqzplk + +j +j + +amgtqunpdeibxovscykr +iceonvgatsrdympkxubq +dqgyptckxoevrnubisma +prgbnkoyvquaxmdftcesi + +kqlrjwf +diupgmacvzjren +xqrj +bjhsyrto + +nuh +nhu +unh +cbhun + +rubmzijgke +hlecupv +vxuey + +dbnx +xdn +nxd +donx + +cvuiqtwyrsg +dirwqugvckt +bwcqitnpgrox +lgqtuziwcr + +ozntkijdgswlquhy +dzftonqyxwgul + +swbhaud +ubdswah +aswhbud +ajwdushb + +howesiylamjvkctqf +ifsqvtjyclkmawdeho +efvikjhtyqwalcoms +ahsqtwejylvidckmof +emfqlgcosvwtkhajyi + +wtcpsergb +wp +wpd +zpwo + +viugarfplcntzdhmjke +fvzmdlgpeunhirbkjot + +znvaugtoh +hazvqongu +zjphvugsmaon + +jbwehmdxqvkyutorcln +bircamwdvnyhesjtoq +tvprwymohcqjnbdz + +sfwhqjipcg +sfgwqjcphi +cqwhfisjpg +qhijpwgcfs +jhcpgwsoifq + +agsqc +nqaf +qfa + +vrzgcdfnwhobxjstqmki +iqgzvhdosjcfxnmbkw + +mzgpvxswjqdyfkhoulenr +tvljromsqcazpnyfihdg + +ogjmaxqitcd +itujnaqo +jzoiatqhpwreylkb + +akrjvhdmbntywpf +takwyimzfrbevj +vwrkjbafypxtml +rjyamvstkfbnwq + +hjlopvsndrgkaie +olgvisnprakdjhe +kprlgnovsieajhd +lvehrasikdogpnj +ronvjksaepgdlih + +q +q +f +f +g + +xnbwesirgy +juoqfp + +nwomervstihglxbzj +ktuvzsxnqwrbgmjhoi +xiwbrgvtmjhnozs + +lv +v + +njpwtli +plnijt + +zfhqjarb +azwyd + +ylprwf +gayclqpr +yjrplzoi +ndlpybrv +elmpyor + +mjh +mkhnj +hjvm +jkhm +njmoh + +g +g +g +g +g + +fjuqinrapmlvosdtx +zavfjgucewhbk +pjqrvsuaf + +hozu +zun + +ubploz +uopblz +obzlpu + +wxo +vdznquitb +ep + +bqcnumxfsdp +puxbdsmfn +fsnudbpxm + +wnlbjceiudzyxvm +hqsgporz +hakzpog + +p +pebzr +p +p +p + +zrdkcyf +udt +yct +wilnv + +qistyedpa +wgchourn + +yegtwxmjochbp +xdywmchgobet +heyxmgotwbk +hwnbyzlmgeoxt + +fy +yf +fy +nfpy +yfd + +ebtghfsmqz +uestmbfg +gsmbpvtfjek +gslqetbmf +yestgbhmfr + +sy +s + +hxzbmwiayvfkqn +hbniwvuzaqxtk +qnuvzhoiwkaxb + +uia +iau +uai +iua +aiu + +hbsq +bd +bvye + +lqa +l +l +l + +pbxqgrfumhdylwveoajt +xrwhdvabtjmylqeuo +vemxbauwljthrdoyq +lqtxucgdwjkmvyrhaoeb +xwlqvuoysjmtabdiher + +m +mj +m +m + +eljdthwsuo +qhlsbdjkeuw +ojwueyhsdml + +dfghunvkqclbji +livfbudpnjkazgh +iljdovyugzhkpxfbns + +rzjuqsltxwmchbpgnadioefv +voipaqzgnljhmwcftsurbxed +ompgcudxnasbwtvejfhlzirq +xercgzwfqmoldihtuabjnvps +zauqgvpnestwljmbcrxidhfo + +qgwvslamj +vdrmwkqa + +doirhpstqebvgnxwjkucmyzlaf +qpclsdmeraxvnwkfughjoybtzi + +wdamfqo +dwoqa +qdkwago + +vn +n +n +n + +cmwzvkoeasgnxiru +igrksmpxanzou +tmzrupaoxnskjig +dojiansxmrzguk +srxiukmoagnz + +ajipzfey +ezypaifj +pafeyjzi +qyepivakfz +ypeazif + +xykdaeswqchvrnpl +hpnvsarkdyxcwqe + +qdluhofs +hdaxofuql +ulwqehfzrdo +husfjdlqxo +dufxlhjqco + +cwijlu +wciujl +uwjicl + +lacpkvnzdr +pdrzsnka +aezdsrknp +dnkzrpxa + +cwfbkysvanzplrqmgdxj +imqfbewslhrunkzypvaoj + +rcsufjw +cwjfrsu +fcjrwus + +stbvdlnigfqy +iqnstyfvdlgrm +yjlwchgvfsakxitnqud +tildsgvnyqf + +n +n +y +n +n + +qdgcxrtav +xgckaqiftvr +xtravcqg + +xkvnzldgfehbotr +bzgfldvohnterxk +gkorvtdnfxhelzb +znkbtfxdhogrlve + +cpzivsrgljnebqm +omuczelbvnigpr +orgcenmklbipvz +ezvnbmgliuprc +cozevplbnrgmi + +jwbvnltkrauqdzc +wtaivycjhqnl +cwmajsxqlnepgt + +pnaztryuxqgjcb +kbljwyfpux +hvjxubypio +phyubwxj +esbyupxhj + +dqpjvicnwmyzt +vhusijnwymtdqxpgzfl +zjboektwqmnprid +xngpwqiauztdjm + +uat +atvhdu + +dwlqvkmgrizunec +cqzuewgmiklnrvd +gemcqlwkurdiznv +qiewrmnldzvkcoug + +kolxnbvrysawjeidfgpqhu +iehporxywvunbqjsdkglf +zwlpbkfudynvqtscjmoihexgr + +savbj +abjsv +avjgbs +jsvyab +bajsv + +ibyugrq +i +fsiaw + +p +p +p +k +p + +je +lf + +xygs +yags +syg +syag +gsya + +zyvhxjpbk +vyhjzkfxbw + +qnwjzxfcsuhdlakgiy +urqihfxljvckoenzp +knftolqxucjzhivb +thcfqxzknjiul +zulcknjtifhqx + +mtayhnuefdc +fmyuheactd +dciyhgurfmeawt +mnyedhuaftc +afhmudecty + +ufbgvyaih +cwoprtney + +eakruyzhcjli +rhinlzykjae +rkiayhzelqj +kjzlsyiearvhp +ktyrleaixhjz + +b +b +b +b + +cnogyljpvifwrasmxqhutdzbe +ocjxyivekfnagmhrztqwdlbup +fhproxtinzgmwujybqvcdsela + +cmbdiv +iqdbmcv + +r +par + +fwoylkjipgbqcma +lkwbcqfmigpajyo +oaftqjkiwcbgmply +bopyclwjkafqimg + +hulsyzxicdwfpjr +rwhzpdxqktigy +xwzhirydpg +ypbhrzxiqdw + +hvngajtlxipcusodyfmbqrkw +hxqsgkwdibtonljfrmauyvp +vmopstryjbiqufgawhkdnxl +viyunsogjxbmwhpqdtaklfr + +fcorm +rfomqc + +dwiethxamnqgy +mtahxwnqebpgy +hapyxmvwjeqgtn +yrhuxangszwqet + +e +e +e +e + +xenwa +nxae +pjynxeoa +exwna +xfnea + +erznfqpulidyjbvksx +ybeqwjxuvlrdigkfz +ibvdyjloqfkuzrexc + +yilugc +fgycijl +iglyc +nrihclgekyv +cguyli + +arkgneqpmov +cgrpofmqekan +okeqrnpgawm + +hpbfzacuy +hboazukiyxn + +hdnieoaf +edi +ezyiud +ide + +f +f +ckfb + +vqabmteoix +biamotzxeqv + +j +j +j +j +j + +xeps +pseqbgx + +oqwt +ytbqo + +yerhiufjlnowcgpbkav +gpoekawnyruvbhficjl +klhiveybjfcnorapuwg +jyihkulcfpovnrgwbea +iwyreuclkfnjbhaovpg + +htwjlanbxmpcig +xmpwhigtncbja +qmiwantcgjhbpx + +jt +jf + +jwzgnmey +zymoxei + +xyicew +zflnuvch +gmydc +igjc + +ofqkcdt +ndvzf +csdfort +zwyced +pjigda + +ocfaxi +aifbc +gfkczhjlsqa + +aslhd +sad +dsja +dsal + +j +wj +qhnj +paj +mja + +t +z +z +lj + +afniquyp +pya +bykap +apy + +jyz +mly +y +ypz + +qir +qir +irq +rqi + +znibodftryu +twobfzynrime +brzcyjtvfsqno +hbzyrwnotf + +ycvwo +ocyvw +ywvco +wvyoc + +p +xy +p +o + +sigctjkfadzbuwx +zuawktsbdfgxec +cgtofdaxskzuqrwpb + +qfv +f +f + +yapmzsbehwfnxtkd +zdxwtampesfbknyh +kdytxhnefapwzbms +obhafwyzrpnsextmkd + +wfrvhuktonypmcbqelazdsigj +ergtnwicvmpjazofdyklhusqb +vhgctiqwspnrafkjzulyemobd +vnzbusrfdwghpeolytakjcqim + +t +t + +gvquj +qzkjpguv +afjwnvugq + +zq +qz +qz +qz + +fjuc +ausbcx +cewu +cu + +bpamufvoh +avumhofbdp +fbmnuvhpao +uovhfnpamb +moahtwbfuvp + +hrv +vfrc +rd +wxmrupg +cr + +uckjfsiehd +msgczabefhutkd +uecdxhklsof +ciysfwuedkpnh + +qy +q +qm + +elgfmsxjuhivdnkzt +napvsimdjlqthxue +socwuhdrtjexvnyilm + +oxnpbmgij +jihdbgom +gmzfwqikjosb +lacubomdgijn + +umwav +mwcrnjua +ahmruw +dyowxszbimu +mwqrnpu + +yqj +asqxoj +jqv + +jnfsyogpi +cvbmezaqtyixr +yishljwun + +izhbx +hlkivjyg +bzifh +iwahx +iuhzbx + +ljnbkft +tvmyk + +tjlemuzrncopwvy +jyvuqlnporwtcmez +tlpjuezwvrmnocy +yomvweptrljzcnu +trupmznvewjolcy + +terlbkpuadwnivx +tldrkanxeivcup +xitarpekvdnul +nkrxaetudlpvi +vlxueindrptka + +hsciqzlkweoxv +cavkfnrgjwbyxqtdmpsueh + +fmgsdtnyuprwlq +kyuiewzhmfsqjoat + +b +b +b +b +b + +avmbusckitlezfn +zvwexmynfautslbc + +qiefjancz +fenzijqac +znajceqfi +ncqfbzijea + +xwqlt +ptueo +gtr +ot + +racbthqnwjgk +kbcqnwartghj +cpqnajrtgkbhw +ahqknbrjtdwgc + +pesglrfv +kgfzso +jnqgsbxt + +lc +c +c +c +wczry + +xqumadf +fa +kafq +fuma +wnbiafj + +aiyocfp +aipzwcuofy +ypcfoiajt + +sruwnzhjcv +jncsurvowzh +wurzhjvcsn + +wlbghmuzs +wmbzguhsr +uzbmkhwsg +hbzumgws +wzulmgshb + +umbnvhigz +gnuzm + +s +w +qr + +yugojkvl +geoj +njczswdxopmg +bojegf + +psn +lormnps +janc +ydxntzkpu + +t +gteulq +cfrdnt + +pkocn +dpnx + +k +k +wkc +k + +atpdlmiqfbrseyh +nzqotpruxykb + +koq +gbodzpsxk +kot +keo +ko + +ecldqpjmgfri +dqmclhfpigrej + +jcdmepuinywxtbghvskaorz +wukzdetljhpsxgcobrvqima + +et +ke +zen + +vdlcumhrpxfonkwyqa +oxytezwpdhqcuab +auhgdpoqjswxyc + +cg +cnqg +ilb + +agecfwmpislk +egflpaiktqrcs +gyicxlfuadnbesk +tgkfipslecza + +pj +pj +pxj + +s +g +g +s +ap + +nux +nu + +ivorp +trovp +tpvro +jrvpcgo + +sytdrevphzkuimofwgbcxl +xgzitcksfwbmlrpduvheoy +bhmlxkysdiugfrvpctowze +pxcyruzehgdvwbfkiltmos +hvowfdzkmiepygsutrbcxl + +flqkpinhosjew +sprznkiybcgqdfxwv +wpfinskhq + +mfg +gmjf +fogm +lfjmg +vmfgk + +droipuglkj +xpfsazc + +kmb +mek + +htl +tlh +htlp +thl + +mntobuphcqwlxygdsejri +gjqxzdrlkuiepotscy +zgjeqvirusltoyxdcp + +dblometkqsucjhviagxn +ojgbteihxndqlsacvk +ilktevjhxnzbqcpsdoga + +swuoeh +wuesnho +ewosuh +sopuwhe +wesuho + +fjiylvzn + +ojchqkwzraygsn +exiahldjtkbfwuq + +projlcwymfedunbvg +ehskrtzuajxiwmld + +bvudeczypxolkjwghnqa +vjkwcplyanboeuhgzqxd +boclqyaxjewzugkvhnpd +kqogpnhxaybvljuwzedc +yonuleqhxwckzjdvbpga + +snxvktpj +kpsjtnvx +jntpkvx +vctjhnpkdx +jnxkpvts + +gjofheqcm +yskwmo + +cxz +zcxa +czlxj +czax + +fuqnrezjwdmb +lqeuthbyfjnzrpwkdo +ajrnwecfbudqz +wfqbjimdszunrxe +winjqgfruadzeb + +zqeubivhc +bqehciuvz +vqhezicbu +qhiuzvecb +qcvzeuhbi + +xvdqnmolirsah +xiqfslvrznhpamo +ainwlhrvqxsmo + +xvjwce +vec +eycv +cev + +drzjh +i +qoi +o + +hceptqjwm +ipxdcfehwob +ysurkplagezcvnh + +geu +jpfw +bel + +paifhrms +irfqpem +irpcwztko + +poedskqgnxutbml +udyoqxiknlmpge +gepkaquldmotnx +mceloqznkgfdwvpux + +iorey +yveio + +ylnfasrjcio +hanjsyfcuogr +hyofcsraj +foycrjsa +wrfjqokstyzbac + +dcjvqusgxoyfwnhzmaetkr +rvzxnmsojutqwdgkyhcfe +wchzsjmdeovnkxqgfyrtu +oevgwhfjrtdxqknzsymuc + +xwfselith +mcrbujdyzagnvp + +rv +r +r +mcxr +r + +xgepuqojkm +qmeuxgpjko +umpogekxqj + +mojhunqzgiyecp +dvruftylpmksezbhw + +ajywhlksidgeuczfbqrxvp +wuahscfejgrpdbimvzqky +iesvbzdgtyqjprucfawkh +yfjzrqhcbguvpwsadeki +qgskazurfbvyedcjpihw + +humsrgcpljxfna +mlfjudgsaiychxrn +urgfkhcnaljmsx +xjcunshgframl + +nftxwyjqucbirdmzh +tbnmuqxjfychirdzw +zyfuhjqibndmwxctr +yqtfchdimxznjburw +bxrcfqtyzmjwunhdi + +axft +tfxa +xtqfa +ftqax +tgfpax + +v +h + +yf +qtp +cfzgy +lny diff --git a/2020/six.nim b/2020/six.nim new file mode 100644 index 0000000..cb9f887 --- /dev/null +++ b/2020/six.nim @@ -0,0 +1,22 @@ +# Day Six: Custom Customs +import os, strutils + +let input: string = paramStr(1) +var sum, sumAll: int = 0 + +for group in split(readFile(input), "\n\n"): + var count, countAll: int = 0 + for i, answer in replace(group, "\n"): + if find(replace(group, "\n"), answer) == i: + inc(count) + for i, answer in split(group, "\n")[0]: + if find(split(group, "\n")[0], answer) == i: + block everyone: + for person in split(group, "\n"): + if not contains(person, answer): + break everyone + inc(countAll) + sum += count + sumAll += countAll +echo sum +echo sumAll |