aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-12-06 12:57:15 +0100
committerMarvin Borner2020-12-06 12:57:15 +0100
commit9dd43be0c0671303b97d1e4a2dc1727a633a5187 (patch)
treec088117ed547a3ff54491d07ae48bebabe22cb61
parentaac336b3596b1eb5e6819fec70302858cda3c683 (diff)
6th in JS
-rw-r--r--2020/6/Makefile2
-rw-r--r--2020/6/input2200
-rw-r--r--2020/6/solve.js26
3 files changed, 2228 insertions, 0 deletions
diff --git a/2020/6/Makefile b/2020/6/Makefile
new file mode 100644
index 0000000..dad052e
--- /dev/null
+++ b/2020/6/Makefile
@@ -0,0 +1,2 @@
+run:
+ @node solve.js
diff --git a/2020/6/input b/2020/6/input
new file mode 100644
index 0000000..6ab020f
--- /dev/null
+++ b/2020/6/input
@@ -0,0 +1,2200 @@
+zvxc
+dv
+vh
+xv
+jvem
+
+mxfhdeyikljnz
+vwzbjmsrgq
+
+vbtjnh
+vhejnbti
+vthnjb
+tsbhjnv
+
+cbjemdvp
+jdvuylp
+ofpjaqgsrxvdn
+dzvpbj
+vbktpdj
+
+knyvdhsemu
+sdyumkgvh
+muyvdskh
+syhkuvmd
+dvmykshu
+
+rmantzovbsuxiljkchfgdqew
+vficzosgwlmrdtqkueajbnxh
+davqlntibxhojesrkugpzmwfc
+
+ifdmgrcve
+bkqal
+gxcwvt
+
+xeiokblasch
+toxjlsbnciha
+sovycihlabx
+ximhylocabs
+hixsolabc
+
+iyfkvmpolta
+thpqodzifxc
+
+iexunoyhwv
+ovweiyuhxn
+uhojnvyxeiw
+
+vbncamhzojtqrlpse
+wujapcidzx
+zxjiuacwkgfdp
+
+bygewhzsnqvxaoc
+sngqvepohyzdwxcab
+yoxwzmgvesbqhcua
+cqtbwehiavofzsgylx
+
+rxanvifdup
+xuvpnfria
+rfnpvixua
+npiuxfarv
+vnifuxpra
+
+ysrktfhc
+trfkcysh
+ktfycrsh
+rhckstyf
+
+nq
+kqin
+nq
+qn
+nq
+
+yorbujt
+evqkmscp
+
+fitkprweso
+fszkmoretwpi
+ptyoswrekim
+iuwbrsgeockpajt
+yewksitpro
+
+gtyaemflvc
+fyvlecgmati
+vgfyclemta
+
+k
+tj
+uebpy
+vyma
+ibdy
+
+p
+p
+p
+
+r
+r
+lya
+b
+r
+
+cht
+hct
+cth
+tch
+hct
+
+qdxpas
+dpxsha
+parlyekqsx
+sxuotvpwaz
+jqxspymae
+
+ngycrw
+wgnv
+sngw
+
+psb
+us
+s
+s
+s
+
+xnodk
+dxok
+tkxdo
+
+n
+n
+n
+
+tysg
+gtys
+syg
+eghslqry
+gyts
+
+qliwfgatpbdcy
+aqwflpdygtcb
+ypdcglqtwabf
+dwgcytlbapqf
+
+nwvlqbusparkf
+jhfbvnsqpr
+nprqbzfevs
+nvrqhboexmspfy
+
+tgr
+rgt
+gtr
+
+jokfqv
+jqk
+qjk
+
+fuv
+mvuf
+vfu
+
+mfw
+mwf
+fmw
+fmw
+
+kt
+jp
+
+fklnagsztb
+znmtsfalpj
+
+o
+qb
+
+h
+peqyon
+az
+
+n
+n
+
+eagyvpmjqxs
+qghjsapny
+jayrqsgp
+qasygjp
+
+yctzugn
+ytzcgu
+cuytgz
+
+bsfxcygptnlk
+xrgocylkifuen
+
+os
+wakdftzgh
+losn
+pn
+yp
+
+pie
+ei
+
+zpsxeb
+tgynfiw
+zomvqu
+ludk
+
+s
+s
+
+wuon
+ngw
+wn
+nw
+wn
+
+omrdjkzeb
+ncdjuzborkm
+zkebrdajmo
+
+tjwaxm
+iztwvod
+wqt
+txwr
+wt
+
+lpcbfwiksnvdhrqjut
+punidbscqtrwjvkfhl
+vrcqukphwjsdbtflin
+dvkwlgnhutsrcjbqipf
+
+spzlowvtxdkjinfc
+indjlksczxfptvo
+czmaxkqnfpbvyshjdliot
+
+aqspmnkxie
+trjhfclyogd
+zwavixpbeu
+
+mozewqhxkduajgy
+mogjekqnfuywzhxda
+ozhkaxegyumwqdj
+ajdzogmehwqrkyux
+
+qemykxdwipjfa
+wdxaplmeyfkiqj
+xmqplaekifdwzj
+mjixwqzaedkfp
+ofpmwxkqjeadi
+
+gpjydb
+jpystgkd
+gzjdpy
+jpgyd
+pgjydxh
+
+drockgqe
+evanghozbi
+
+kfg
+lmfwig
+gf
+fgsj
+
+zjfnabowyrtmxcgl
+ycrjxazgfowbitlnm
+hrlwegxokbqzatcnjfmy
+jcobagxflzntymwr
+grzotfxcymlwavbunj
+
+iamdhcgfynqzos
+gyszifcnavdolhqm
+qmnwziuropsacdgyh
+
+mwlgcedjtknxsuy
+estmwlxuydjkci
+hctlyawmxkjseud
+jutsxdycwlkmie
+mtwqyskbflxjzvcdeuo
+
+sdfwjm
+wdsm
+ygmqsxdei
+
+u
+u
+u
+
+dutb
+dubt
+dutb
+tdu
+idtu
+
+sqpfzwlvcjtx
+haiv
+dveyohgb
+kuvhm
+vik
+
+myzxofuacqsgi
+kcamifojuybgqs
+
+mthngfuvykwci
+numzktjydcxwio
+
+aspdgtikq
+qpkgdtisa
+qsgkdptia
+pqtuakzdigxs
+pdkqtiasg
+
+fityomxdwlscjazhkqp
+pmzrcjhvntsobfq
+shztqgmrjofcp
+jmcngqhoputzefs
+
+whjgxi
+wxjoihg
+gxjwih
+
+hirpefgxsa
+gahfytkz
+qdjlzvwfahg
+hbaofwgvc
+
+dhcnfgy
+fyhdgc
+gyctdhf
+
+hbmconewlqgsdzk
+jqflbowkdsgc
+hwkobvdcsqeilgn
+lkcogsaypdwxbq
+
+enzrdgqyu
+gvqrtoihlaj
+qrgs
+qpeurgzkxn
+
+grjdenycstpfbihqo
+bfkhlgjrpeysomtvidqc
+
+fxmqujr
+wmvghur
+dpaeyko
+
+untpyr
+urtpyn
+apnutry
+uptyrn
+nustyrepg
+
+ofualjwvq
+jeyoqru
+yuxqioj
+ushtogmdpqjcknb
+
+txeyfwrhl
+xrhfytelw
+
+nu
+niu
+
+rbmuneiz
+neibzurm
+mnerbizu
+
+mvtkp
+vmpkzt
+mpvkt
+
+vakc
+erq
+b
+ijftomxy
+zsg
+
+yptu
+tpayoub
+
+zsqvdfw
+zdswvfq
+qzwsfdv
+qwzdfsv
+
+pbwvzadgyturskqoefncxhmjl
+thazxruyscfqndvpjklbgomwe
+
+xnomrqyzpe
+ieudmxroqvbnz
+
+cldqr
+ecdqr
+ercqd
+cdwrq
+
+kwzqcagfxvhjromti
+hfsjcqxibokgravztmw
+atkrogwjcxvfmzhiq
+gwhztkxacfvrimqoj
+
+ztbqli
+lobdrhgt
+rbltoyh
+
+wfh
+fh
+hf
+fh
+
+rnxkztpmi
+umzigxnh
+zyxilqnsm
+
+iox
+oi
+
+ovugqjpxkshczewmr
+smpgxuqzlehkwrvaocj
+civspxkmhjwuzegoqr
+jergszqvhkxucpomw
+
+mzsrlcfqpuaex
+rtxaqnsjczvf
+rxsuiazqcdf
+
+zvmltjegwxyfihnsaouq
+tmwlgxyhoendfiaq
+nrgptwaxleoqfihmyk
+tlqhiawmnoyfegx
+nhlwfcagqyotxmei
+
+dfoyublxhzajwktrv
+olrfzuyphd
+fynohuiqemlszr
+
+nmwedzq
+qewzdn
+zqnedw
+qnzwedp
+dqezwn
+
+lvugjzmsec
+mgnlqsjzudvw
+
+yasmrkxvnpch
+yxabnvhpskrdmcl
+hvnkarsyxpmc
+myhvconkpaxrs
+
+pfelbgs
+a
+vriu
+
+vfy
+oj
+izagebph
+ck
+mv
+
+hn
+h
+bjhtr
+h
+h
+
+saixpwbhqdverzcyfnktluo
+kuqtfhewypnrbgvcdliozxs
+deiyptgkwrzqlohbvxfucsn
+bynqihpjwecotlfvzusdrkx
+
+yxvfnlwz
+ecvwlfbgnz
+rfphonqviwlz
+nezbwvufl
+
+i
+i
+i
+i
+i
+
+hvbatqdzu
+zvaqtumldb
+
+hqxbn
+hqbn
+hqbn
+
+ymikcgxdph
+kmduhyxqenpil
+kphygxmid
+hidfkzxypm
+
+gve
+eygv
+
+chds
+hsdc
+dcsh
+hcsd
+
+pgakuncrze
+rpackxegnz
+
+nhypde
+ncepyd
+ndpey
+ydenp
+yecndp
+
+qgjpeu
+dfma
+uwnfvsja
+ohxcltz
+
+emgqlacpfvjhux
+iudjrhwvfsxplmge
+
+fmwbpeyxna
+wxdnafyeuibkj
+
+rqhzeaojuigyvp
+ovtixs
+ixov
+
+ms
+m
+
+u
+v
+u
+u
+
+yo
+yo
+yo
+
+rhnmlxbvdteckzpsjaw
+cwzdraljthpnkxmeibvs
+wavdlhjezskmbrnpcxt
+pqadwkrmjbecxlnsthzv
+zkpbawrdhnclsmtexvj
+
+djecv
+jewcd
+dejcb
+dvjce
+ecdj
+
+adiotklhj
+oakyljdthi
+laticokjdh
+cialdtykjhfo
+kadoequjtlih
+
+xcrfloupby
+lufciypr
+hrpcuyxfl
+
+fwngabh
+njfgbwha
+hgafbwn
+bnhgawf
+fbamhngw
+
+fwqe
+qfmvup
+fqa
+fqe
+
+us
+us
+su
+su
+
+lobh
+b
+bezjmi
+iblz
+sxbtav
+
+tjkdlfwm
+klwmjfdt
+lcwfvjmdktq
+wlkfdtjm
+kmdwltfj
+
+ngrzftbhoevylpiscd
+rhvsfbliwkndcaxzoejyp
+pfizbnldechsryov
+csnrdfibyvpolzeh
+
+bhszfutjkrdxyeic
+iscrkhbjwdlyxzefp
+
+rncodaythzpgelbu
+udcnathrbsogelzy
+yuhwglzreancitojbd
+yhelzuodacnrbtg
+
+rv
+fwla
+
+cuqsfzalw
+caqzwlfus
+wvcuflszaq
+saqlcuzfw
+uwscqaflz
+
+hnp
+pnh
+
+y
+y
+ergy
+y
+y
+
+bmexpongud
+pgktrwhbneqaxov
+uiocxdgnebps
+
+vxtckwno
+uenb
+
+xgomqzsuivnab
+xusnvoqimgbza
+vqizsuxbnamgo
+zumvgxansqboi
+
+s
+tsy
+lf
+rczxhvaopjew
+ltm
+
+ipvefjzuhs
+hiecsvzu
+egykiushqbzdmovx
+izhvesau
+virsuhez
+
+ld
+lg
+
+xnvszluechwptgm
+uczsgowtpvlnmx
+zmwglrpscuvtxyn
+xmcstnvldzpguaw
+miwblxuzgcptjvksnq
+
+ftwx
+zcritxpbo
+txsf
+
+buzcyxlmoknsvqrdpwta
+iseplfgmrnjbwyvhtxk
+
+cmjpkingdflra
+pcinrfladmkug
+icrmngljadkpf
+
+saehfjb
+dtuheqwbgxyonksjlc
+ehvmjsb
+
+fcty
+qopy
+hyfv
+
+djkcm
+jklmbd
+mhrdkji
+
+xaropbcylemuh
+benjalhducrpy
+ecypvsklubhtirwfa
+azrynhepulcb
+
+xe
+xe
+xe
+ex
+
+os
+os
+asob
+so
+
+omtnjhdvcw
+ujotewxndvkfb
+
+svqlbwrctd
+qfcbltsh
+
+eof
+ebosn
+owfe
+xmyoe
+rvmoew
+
+lmaus
+ulam
+auml
+
+ky
+e
+f
+o
+e
+
+figyhsul
+fguyhlsi
+lyhfigsu
+yuglfshi
+
+myc
+cmyd
+myc
+mcy
+
+dpnbhltm
+mp
+pmua
+opxm
+kvpgmuf
+
+hk
+prv
+rh
+ixm
+
+umlcksxonaqft
+bednjkpgirm
+
+tj
+fxjtl
+tcmj
+tgzbvoprkqwu
+ist
+
+bzats
+haosb
+abqsk
+abgs
+wvbfeuxasn
+
+knwbzryjvde
+jdebkvryzcn
+djbzykenv
+euyfnkavdzbxmj
+
+srgkpw
+apqbxusc
+tpmwq
+injolypfd
+
+onxflkzsqwetmdrayupbijv
+blkorzdvyxiuawgnqpmstef
+fsnpxiueltmzovwrabyqdk
+bfxsyekrnvdqzoutwpiagmhl
+
+jahltpfywcnobux
+hcwfadpkyzms
+oglqhpifavcwyx
+
+migjhyvpnf
+ufjyqv
+
+txoci
+z
+izvugb
+rpydhl
+xbm
+
+ajlfb
+bfl
+jslof
+fzrnmlqek
+ofdl
+
+crbuzmjlnsoixgyatf
+gkbasourfjcimlxtnv
+ndmwxstgfoubrcljia
+qmfoxlhnrubetgjsaci
+
+msr
+ir
+
+ypv
+vp
+vp
+rpv
+pv
+
+jquxr
+hngqptklaeuimrw
+frbdvoucq
+drusqy
+xqdzur
+
+ifnuymdhesgzpjkroqwc
+nqshkiwoyfcupmjgrezd
+cpqmjwreogdyhuznfkis
+pzijugdfykreocnqhswm
+
+wletxi
+twlxe
+tjewrlmx
+sflciwxet
+
+cqmtspovlhxzwknijgdbya
+jktgvsnfmobiwxplqzyc
+oniglefctyxvbzpsqkmjw
+
+aqbujkmecp
+jcakubpeqm
+
+ms
+s
+g
+d
+s
+
+ymb
+bmy
+tbym
+zmby
+zymb
+
+zmajf
+afd
+
+saqutcgmzpvrx
+qzumvpcraxgts
+zcmgpquxnrsavt
+uxztgakmcqsypvr
+xmvqurazcptsg
+
+xgcnvwikzmh
+jualdmfogexcp
+vrixcgqmbt
+gcxms
+
+hlf
+jzeubrawvgonf
+yqxcpkhf
+
+wpkbqaver
+kwenvqrpbd
+pswekvrqb
+vbepwrqk
+rkweqpvb
+
+r
+ef
+eqh
+e
+
+nvzfi
+znmev
+ohnlvzk
+vnezjc
+
+whkjfmbtausedyvqx
+tmqxhkfsydevuwba
+srvfbdkymwtqxiehcupa
+lsatxumedbwfkvyhq
+
+aligpe
+glpaie
+aliepg
+eilagp
+
+xvigpscledkfwjbztn
+sgejnlvxdtbzfckpiwh
+vlcwftebgjsndpzixk
+swkzngbdcexifltvjp
+
+zrethjknvsdwf
+qldrsgybijfhz
+
+tlhogxqens
+habqtneudxljgks
+xqtsnelhmgo
+qlnteghxs
+
+bhc
+ec
+ch
+jgiyc
+
+xzfioelc
+ozilcexf
+zfeoxcli
+clefxioz
+
+uqjkybfsehwxzlptrni
+caryzpjnukwlxesgtbhf
+jzwkubtlsypqhneforx
+xlrwkspjyufnzebht
+
+tvzuoab
+bv
+bgv
+bv
+
+ltujriwpmyna
+jtrmpw
+mwtspjr
+tmorwjp
+
+tyjsqfripxz
+rpzxytjqsif
+xtyrspijzfq
+ctixjyfzrsqp
+
+ycjihklnd
+ezvuqn
+
+chtgvuilo
+uvgticloh
+
+hmgyx
+yghlx
+
+oejuvpaigsrqh
+pijsveugqroha
+eviqopasurjgh
+iroqaphsuevjg
+qauzoirjghsevp
+
+gumpokcdtinjberaxqfz
+xdounkjezmrpfbicqgt
+pzfgicekuymqnrxodbjt
+
+npy
+nyp
+ypn
+ynp
+ypn
+
+xfhucsdlpveoir
+mnzobifxtkr
+
+hy
+yh
+
+iumnsyqgw
+wgyismd
+rdmgwiyhfs
+xzgywmis
+
+dwfplygjx
+vuhewxszq
+bxnrmocki
+xtyea
+
+ouyqrtczxwj
+xqtyujwocrzb
+qjxuyrotkwcz
+
+qjtcyaoexnvl
+nxtaqkjloce
+tzcongqajpxle
+
+olubpxmfdayik
+leqomjitfbay
+
+lygezhjmbi
+clvphtkud
+
+vp
+pv
+pvkfw
+pmv
+
+rpsclgeuhmkja
+mcgypeuswakhio
+
+ajdpyugzbcswtei
+pcadiemunsbgw
+ludvapgecqsfbwi
+elsugdcfnhbipwa
+
+vfzoqrbgjycuenwlxdts
+fgdnclwtoyxqvuesjrzb
+ejatdrohipbxucyvnwzfsqgl
+utsloejxznvwybdrfgcq
+
+vwkaomqupbitzrh
+pvawbkoztumqhr
+
+ijbcxau
+cijuoea
+cjifuyqa
+cubtxaji
+jxcaiu
+
+zsankwocrhb
+dchzrbkmaswon
+
+jdcfne
+nfedjc
+qeczfjn
+fcejqn
+jnefvc
+
+vpzmjnb
+zbvjqdys
+zbxpdjmial
+ktouerbjgwz
+jsbzhc
+
+zbsi
+zisb
+
+txvngrdas
+vadsrgtx
+
+qgnvriol
+
+a
+a
+a
+f
+
+mvuywsiaqcl
+nqavfwhsicz
+
+yuomdcgnvwhakel
+auwkhgoycmlevn
+
+icagyksq
+crsahngi
+
+vb
+ftlgxroupjyis
+cvh
+
+vcimkpuafwqbryogjxdt
+mxyftdriubhawgjcvpkq
+rybptdfhaoxkgvmjuciqw
+idxrkpygcwvltaefmbqju
+trmjbiqpnyhvscwxafukgd
+
+esbdajqhvl
+jdqlszev
+foedswyvlunq
+ixevsdtblmq
+rvetlqsdk
+
+islfcy
+yif
+bify
+ioymf
+
+hrcqst
+pecr
+
+gwd
+wdg
+dgw
+dgw
+
+ksyqndmahzgxejfp
+sexhgkfzdapyqmjn
+dejzykngpamhfqxs
+
+fmohepc
+pucg
+cp
+
+xvdmorgbsnawjlecztykpif
+rsmwdvfplkencbzaotgjix
+
+wjhkg
+gbkh
+dklegsrmhy
+hukgw
+
+flwu
+lnzckx
+vetd
+myj
+xwcp
+
+vjhnftpyr
+nfhjvyrpt
+
+lne
+nel
+nle
+
+hgqjcse
+chfja
+jqcus
+kozlctmiy
+
+h
+h
+h
+h
+h
+
+lwco
+wloc
+tlkuwco
+lwoc
+
+egzxalry
+zyxaklpge
+zlwergaxy
+
+nghrpie
+nqz
+au
+ytcdsfw
+lbj
+
+jkcetobxnsyqwfdzuglv
+gsnwvmzjxiteryacp
+njcshegytvzxw
+
+qtsf
+st
+ts
+ts
+tps
+
+ckmnriay
+sytrcng
+ncywrg
+ncygr
+
+rcnyivhla
+ebgfdotjuks
+
+tfjcihobxywuvpezarkg
+hckgoruvbxzenjipaywft
+fwhtyrvebajgpkcuxoiz
+oaruytpwzikbfhjxevgc
+
+oaxzdr
+dopg
+opzak
+woqg
+notveuy
+
+l
+l
+l
+qn
+m
+
+dvjuhlfmectponaxwyib
+yfaltvohpnquirmzjdcxsb
+
+ib
+bil
+ib
+bi
+
+sd
+lo
+
+s
+wsvef
+va
+jwvf
+rdho
+
+or
+lor
+kro
+
+ze
+e
+e
+
+teh
+ef
+ek
+fe
+
+dfbzgqpsk
+pzgfaydsuxq
+pgfqdsz
+kzrfgqsdwp
+
+rxqgndcawfb
+loyuzbmejivkhs
+
+jilybertvwkqcma
+nuelmho
+ledhomnuz
+esfml
+gxzpelm
+
+mikrjtbophlqduwsexvcy
+mbrqlycjvskdwithuopex
+qlwrcduykbmxsovijthep
+xevmqplwtjyckbouirhds
+bmytdrsxvupciloewqjkh
+
+wrnkojbmtzvchulxaisepyfdq
+xicryqvwkumtozjdhsflegpabn
+
+yjxpwakhd
+klhj
+kjih
+nshrgujk
+skjhm
+
+fasz
+aef
+gmqipcfanvt
+hsafl
+
+m
+m
+m
+m
+
+ksyargzucfq
+lyvjrmapbhqwt
+
+b
+b
+by
+b
+
+d
+dx
+
+lqdmrovwifbhpkg
+dqvofhgzwipkmlsrbn
+ihmvkdqbroflgpw
+bghqvfipwodlkrm
+
+qzuabnldjsf
+nabfzldjq
+
+ihkpj
+skhj
+khj
+
+pfhzgidaoumyclqwjb
+oubaqdmhlzgjfcwyip
+maqwihopcbdlzyfujg
+aydlupjizwhofcbgmq
+
+dcifuhzpj
+udizhcfj
+uzcrijdhmf
+uhfdcjize
+dxbjhzaifuc
+
+mijthslvq
+vslmjqhi
+
+yilmjrbsaugeqv
+sokhewyczmgufabjv
+maxbtsguvyejdlp
+
+bdysxeouwcn
+otszxpnm
+wbsxonkr
+
+btwjys
+bjy
+jby
+bjy
+
+elobcuyqvps
+ubeloqvyspc
+elvcypobusq
+qbcsuyeplov
+
+zshbqdmcxntwokevlpjugr
+lubzdvwrksnhqcptmgyexjo
+
+csmyezwqxdpfh
+zexmdwhcqsyfp
+fdqeysphczxwm
+
+wx
+x
+x
+
+hmudcwtoix
+duitheoxcmw
+xeomwhtiucd
+xmthuoiwdfc
+
+qgh
+xburedysok
+izaqc
+vac
+
+c
+xd
+y
+
+bcqxzv
+czxvb
+xcdv
+
+rstdhfvyupaqnilgkx
+thmdrvqkgyxpcewlafu
+xkvfgpdtahinlsyquzr
+
+ionzfdqwacl
+aliwfzcnodq
+ysdoijcnpqalfwuzr
+dialwcqofezn
+lqwfncaoeizd
+
+vjnzhsyokprdwqt
+slufncexiadgw
+
+lmanxbzrvkgju
+cotlneyfp
+
+ehcxwrapivns
+nvewjcaspixr
+ecpdkqxvastmn
+
+okgbcwvytiznshexu
+kwyszldpbuthoxnj
+kotjwysnuzxhb
+juzbwshqatknxomy
+krzthuxqynfoswb
+
+rjfbkgapzqiwnecoh
+ohjnfzrabwcgqipek
+bgmzawokijpnqhfcre
+vwherzicopkqbanjufg
+
+qrwxpijsu
+apuwbfirqjs
+
+rgynxak
+uaxpirf
+
+sf
+f
+uf
+ihxfzdy
+
+dvcrwsbpziytjqhnuoa
+ehgudqsyzkbrnpt
+sptdxznyeuhrqb
+uqzbhfynsrtdp
+srpymhztqbdunl
+
+rqly
+dlaxpwrji
+rbljwh
+
+grascdfzlpxoeqvtyn
+xcnfwvryspeukbodzlatg
+
+oqlucpvdizwh
+trakqib
+agitjq
+
+yslaopvredmzcjnighqtfk
+ohgqmkatyrledjnifspzc
+
+xwliz
+czvfiqxw
+gyswmhb
+
+fpndrua
+aurfp
+rpuaf
+raufp
+
+eukjozdbqcxpyl
+qyfmkxzboulcpejd
+zlquxdybcepjko
+
+dlgxuchpnmosfr
+dxcoshzfguykpvm
+awgdpubxiefsohqj
+
+abop
+abvpo
+napobc
+vapob
+
+wryqzk
+kwqyc
+wyzqkr
+ykwqzo
+ywkqr
+
+jbk
+tkbj
+bjkcn
+bjk
+jkb
+
+fagxpiolshctke
+xtiochpabflsk
+
+fqdteprviumho
+meitwhforpduqv
+utfrhempwodviq
+nehmyipftrqdlucov
+
+anqedwylpuv
+edoqpufvwzx
+tiuqvjhcrpewkmd
+psvudgeqw
+gdwulbpvqze
+
+znugjimbptvefqhxr
+suxktycoplwe
+
+qtludyrb
+yqrludv
+lqdyur
+ldqryu
+lurkzqyvad
+
+cwmikuhtgole
+tzghimclkue
+igtxkcpsmlydhe
+khtglcqmuie
+imhwecgltk
+
+pschkw
+schnwpultqk
+iwzohyej
+
+dwxbfsq
+dswfbqx
+
+tpby
+ptq
+qpt
+tp
+
+nqtocmfdjpskriev
+agvctwbfxkyj
+
+kqdewilc
+qweluikd
+
+qbyv
+vb
+
+k
+jmp
+
+lvnqfrdctwzk
+xtljgevz
+tusihlzv
+
+vrtojs
+rvtzosj
+jrcqvsutohwl
+zvpsjtgoar
+
+wkh
+wh
+hbtl
+qh
+
+jzcdykoafitepbxlqvmns
+yqcpzvksoinjlebfdatxm
+
+rvmjscznedib
+smineqdwcjvrz
+duejsmrncviz
+idrmvcsezlnjf
+
+qognsitfwkcmvd
+qbonaiuktrc
+ctkiyqnou
+iptrcqjkhzoaxn
+
+msjqvb
+wxfpej
+
+zgdmaphfuiols
+oemgjuxavhcsfzdilp
+gopdafmiulshz
+zaphsolgumftid
+fdgmahupzsoil
+
+svdmfou
+uofmsdv
+fuvsodm
+uvmodfs
+vsoumdf
+
+pn
+gn
+np
+hsnc
+nem
+
+ondycsxijkhztmb
+sdtmkibxjyu
+
+cfdbyz
+dbcfyz
+ocfbzyd
+bfzdyc
+fcbydz
+
+rycjvanzo
+qzecro
+zrqoc
+
+iytqmcheg
+gyiectmh
+
+idcpxfhmwbutsogkazl
+iwoydxlchsezubtkgpma
+fcwtdoulsphxmibkazg
+woshuclmdzibaxpgkt
+
+lvpfdtgw
+jysqnxkozermwc
+aywockbuh
+
+hlgrnxofckptmqvaebsdwi
+lhqtonswkdmvrcibfxape
+wqimranhsepdotcfbxlvk
+ksxwcidfaoqlbrvenhtpm
+dncheprotawksmxflvbiq
+
+mkcyzpfseqg
+yqgmkczvt
+zbiqoynxkrjd
+
+qalxdcz
+wuchrlszbepm
+
+tisl
+tjoycs
+
+uixno
+zicsuorn
+xuqiokn
+
+qadwnkvfzltpib
+ctehovpradslgxujwnmbfiq
+
+lnbzhdvqucg
+udvzgqlcbhn
+zcvhlqndgub
+
+dnkeso
+enskdo
+sneokd
+oknsde
+dekson
+
+aqxyozpubvjgcr
+ybpjqrcoagxuzv
+yrajbvpogcuqzx
+ubarxgvqyjpzoc
+xqupgyrovzcjba
+
+galcpxukjvdfz
+jcvgulafdxpzk
+gchxzuajvlkpdf
+
+pds
+euwsvd
+dsf
+
+phvzus
+rhlztp
+phzdla
+
+rfpbcyd
+rbdycpf
+
+brwpvt
+spvtrjb
+vytpbr
+tbsrvwp
+rvtpb
+
+efmkb
+bemkf
+bekmf
+temfkb
+
+jyzinpl
+efxqapwo
+rzup
+dpcr
+
+bawpqhnvmtuxsflizck
+avqcthmkpifswzlnxu
+slmqcpnxivzahkutwf
+
+zsakf
+skfeza
+
+neqbzcajpw
+onzqsaxhcbwljdm
+
+do
+do
+od
+od
+
+rieubqwd
+cqrupedvitb
+edbqirun
+
+hvrpjfwud
+zpauyi
+kbxmeupq
+uptwfhgzaj
+
+vkqf
+fhnpyx
+gawucsozmdi
+tbrpnlekj
+
+neriadovyhuzkqgc
+rqflhpywekobzstjumcn
+
+bvzumtnorcqhyilgwe
+tvnioyzlwmerhgbuq
+wylinhomzvetrbuqgdc
+ghbltunyeopfrqizmwavx
+
+jvrieqgfklch
+pjndlghruvif
+
+xbwvzikjtnhfayp
+tgcadrqjxuel
+
+lbxsjvamqwdfutrck
+bwrxdaqzuftlmvk
+zbtmakqxdfpruwlv
+
+jrisgax
+gries
+rigts
+girjspe
+pasieghr
+
+reqwbsjzlghkv
+gkmvstdcaroqbzjp
+qhrvngfjzsblku
+
+vtilu
+i
+i
+
+cmizk
+kmcdwi
+tokljcmiv
+
+gcmxdqoysrjhzvunkbtpwfi
+rsvhxmjgbdupqotnywkcifz
+byczhwkrnmujqoidfpstxgv
+romdtyjgwbcpihafslznxqkvu
+
+kcx
+wfsoxa
+rcxk
+xecl
+
+xhljmt
+lheratmxj
+fhmxtcwlb
+xhlmaritg
+thxmalo
+
+usfhzlidpmxvonr
+luvxhfdcmrpn
+xpfldmuhvrn
+lumvrnedxfphk
+lpvdnfurmxhk
+
+ukqco
+bg
+d
+x
+
+wshkqpojltbyexrvfcmaiugd
+ptxsveguqfjdimboarwclhky
+figabshrwotdqjepmlxkyvcu
+imgseacrdxfkyptwhvoblujq
+wflyahpcgbrsmvkitejxoqud
+
+cdfihsmoy
+smieho
+mhsoi
+oenshami
+ozlhswmi
+
+pefjcrt
+vdfzpwrtc
+ptegcbfr
+
+uet
+uet
+eut
+
+ubyk
+ukygtrole
+jukzxqhvy
+eumldfkyos
+knaiuywrm
+
+ncjzgqof
+qafcjnzog
+zojngqfc
+
+uxkryjwflco
+psolcaquvwkdnizre
+
+linoudwypsgbvmx
+wugpsidobmnryv
+udynmoswgb
+kydhcbnozusmegwt
+sygbrmudwnafo
+
+sfkatdxbyqezirv
+skvtiarxeybzf
+viyzrlampbxtskfe
+vyqazixrftsebk
+
+bjwqhkryuz
+zmwkyuqhjrb
+qjuwrzhybsk
+hyzwujqbkr
+
+wjahb
+jywahb
+jbawh
+jwhba
+
+aetucrzpvn
+esznbtkoy
+eztdn
+zonte
+
+dkpu
+mpqcixu
+pwu
+psu
+pudkhyv
+
+ydtaink
+atndubyk
+ocytkdain
+wnvgzytadkps
+
+mtne
+mten
+netm
+netm
+
+l
+lz
+l
+l
+l
+
+wfu
+wfu
+uwf
+uwf
+
+wcxsiaokerlumjnqyfvhtbgd
+abrlxsfzqjuwnotehgmdkcyv
+
+kate
+aekt
+akte
+teak
+
+spxqizdhbuokw
+pwdxibkuzsqohr
+qkszwvaulbpdthoig
+ouwqdkzypbhis
+
+xlskunagot
+onxagbulsem
+olnsagux
+
+mhrst
+hm
+hm
+hknuimeg
+
+pzwtsrfhcmqidnaeybgxkluvoj
+keugsjaimzwbxqcvndytfhlpor
+
+gezfhs
+nsyftgje
+csifykhegj
+fdrgmqvse
+
+eqagibxdlst
+gdisebqlxat
+eogtidqaslbx
+tdbqslaigxe
+eltabiqxsdg
+
+hopcmlyfka
+zleytsfdpcgbn
+
+iq
+qm
+ajngr
+
+jgnh
+pdqzyblwuh
+tovghj
+
+jsztoebhflkrncuygi
+epzghnfcoljutisryk
+ugnysrzftjieholckm
+kyeuglztrshjnbfico
+
+q
+q
+q
+q
+
+zch
+zhc
+ch
+cdgh
+hcw
+
+nubdmx
+xunbd
+dxunb
+wbxund
+udnbex
+
+dfcauy
+afdcuy
+dfcuya
+uafcdyn
+fudyac
+
+cdgkzushqaevntrop
+ndhzqxgksrpotcaev
+qetkhzodnsrcgvap
+epcvrnokadgzhstq
+nozqsrhcegpavdkt
+
+wbpaec
+jmfyir
+
+wozuxcnegrjikhy
+eritoghwxluynkjzc
+okrecihjuwxznbgy
+nuwirjxkezyghoc
+
+g
+q
+r
+
+jdr
+rj
+rj
+
+ogs
+szgo
+osyugw
+sogj
+ogs
+
+ixnlzuvyar
+ryznvumlqfexi
+icylvxzrnu
+lurxhyvzni
+nixylzvrut
+
+xv
+xs
+x
+kfwax
+hxu
+
+dkjohmvtxscaqpyzbie
+bdvtjzyhoaecmxpiqks
+eyhsxtdoazqvcbpmikj
+oevbpqstmxchykizdja
+mbvjkyzihcsqepadxot
+
+vkqgipbhsmczdaery
+ckomvhixysdq
+cvixystlohmkqd
+noyqmhdfuvkcis
+
+jeqcx
+xjqec
+jceqx
+qcjex
+
+okncyha
+kha
+wdqkamrhi
+
+uajtdcwglpxf
+ldxgwjauscp
+avciwljdyxupg
+lgctupaxwjd
+zjblqcxwkrgdanup
+
+ogpcjvltkizyrubnshf
+xrpukdzmcsqlnofejigtvbh
+nhvztyfbsuicjlrkopg
+
+rklv
+lnvr
+vrsle
+
+tdoeb
+toebz
+jbot
+
+ahntqkrwvxc
+htray
+tehar
+
+xbis
+q
+p
+
+y
+y
+y
+y
+
+svpnoi
+vsnroip
+
+rkdetpah
+hpdmjrekao
+ybzcrhkguew
+
+ha
+qkj
+vzcjq
+
+ubjqtpfxalnv
+uftvrxjqpbnla
+tbunjpvqfxalh
+
+izesvwkmyohlqr
+jhtqnmyiawpskz
+
+jdoqhwbftxpavygze
+zydthexqgwpkaovnfj
+cdsvzfxwtigjamryhqep
+
+srvdcubotnwkx
+dmhpqyzikcslargnj
+
+tcmoi
+ptqeci
+buvtic
+
+kisteoqyjapdrcgfx
+sqdxjckrfoytap
+ztrdcxsayfkqjop
+rjxfkpdaqysozctm
+fyctdxsrkaojqpu
+
+chtzwxr
+ozcrsthux
+
+oqahrvuinct
+uavtnforke
+ounartv
+akunvrot
+uonvftmar
+
+hveqfbrwkdosnay
+zofutwkxmpgnljic
+
+sexkhbfwvagzjq
+hryamtnf
+phacfo
+
+yzdbglajf
+lybfajgzid
+ldjagfbyz
+djlyzfbga
+lgyjzfabd
+
+mk
+km
+mk
+mk
+
+vupse
+utvf
+veu
+noubvi
+vslpu
+
+gxcz
+xgcz
+zxgc
+cgxz
+
+xsgkotfqldj
+ltwmgjofxdsk
+
+sptmvzkdoxwqrefgn
+zwa
+ybwjzuchl
+
+jqdxzbhsctn
+ocsat
+tokewcs
+usktc
+
+hqctliu
+ilchptqu
+quchitlj
+lcuqtih
+ipbqctulh
+
+wgihvaqrxpczsmflydjuket
+mclinzpejdgtsfwqhyxkrvua
+
+sdgycjfmukezpx
+bvwzqrmnti
+
+xoizphtv
+mfzxhitopvag
+hzipoxtv
+rdtxiopvhz
+hnvopxzti
+
+nluidsozya
+sxcqziol
+
+vf
+vf
+fv
+fv
+vf
+
+x
+x
+mdtxr
+
+cspzldibokwq
+bnktcpxzwlmeijqvd
+pqkcyzhwbild
+
+zmdrvaxgtiq
+jydtqgcm
+dqgtxlm
+fnxtegsmqrad
+gkqmdtv
+
+zwulxhevg
+jtwpxvdczlsh
+znxlvhw
+laozqhwrvgx
+xmlvhfizw
+
+ixjseyvhfcupkz
+jifehpsczxyvu
+ixhvyweujozsmpfc
+wpfskxljyceiuzhv
+gydqfcphztjesirxuv
+
+bdolgwcua
+cogbawu
+ugabwco
+obtcwagu
+wcbuoga
+
+txjldzfwhbqcspemvgkiyn
+kmdswhijztqfyclebvnpgx
+szydcbewfnmvpxhijtqklg
+
+jfxehga
+aoxhj
+vuaozhjqxi
+hxjqvia
+
+cyknepoazhsml
+dhoecksznaylp
+uktqnwrhivasbcxlepy
+yshcfelankp
+
+mgbwxcvkrl
+tzoauif
+qpjntdoysueh
+
+n
+n
+
+briatspxkzdwue
+abdgifsljzuo
+
+vklpca
+lkavpc
+
+lfxguyd
+dzfuex
+
+zqxod
+qxd
+qdx
+xhqude
+
+ovigcernldjwzy
+idegzjvrwlyn
+
+cb
+bc
+rbcxdh
+bc
+
+givtqeysrcjfzumod
+isrgtyjavfwcoekdzmuq
+zdgtmescqrvyiujfo
+ogumbvzcdejyrtsiqf
+qdfjsoetuvrymzcig
+
+fwruktphdzan
+zkfpnrthwaud
+unrhpzwtdafk
+
+odlubiyrqzfevnjpakwtgmx
+lrsdjkauwbvztfymqginoxpe
+omeqnvadjubzwkxritgyplf
+fjzywpmkeaotldvguqbnixr
+
+emayzjxi
+axzreyckm
+
+lduhiqwpjrnkto
+ntcrjqdkwphloi
+thjdwnklqirpo
+tqpdwjilhoknr
+
+vi
+iv
+vir
+
+xoetdfmrbvl
+dfebtomilx
+fbltmdexo
+
+hmcuklq
+lusqkch
+iqjpulckh
+suchkql
+
+gu
+gu
+gu
+ugn
+gu
+
+lvtfiecgrzxhm
+tircajhne
+
+fm
+if
+
+subio
+buosi
+boisu
+busoi
+
+uwkhxabg
+hofrviyqz
+wkuhs
+
+zoswictnpdvjegqymbfura
+cmrnqyupavzbfjegidtso
+xpycanfhjrulqzvmtdbsegoi
+iqdrfstyjgabzenpvckomu
+
+kzardg
+dkzgura
+zdagrk
+gdrakz
+
diff --git a/2020/6/solve.js b/2020/6/solve.js
new file mode 100644
index 0000000..e82242a
--- /dev/null
+++ b/2020/6/solve.js
@@ -0,0 +1,26 @@
+const fs = require("fs");
+const data = fs.readFileSync("input", "utf8");
+
+function part_one()
+{
+ return data.split("\n\n").map(e => [...new Set(e.replace(/\n/g, ''))].join('').length).reduce((a, b) => a + b);
+}
+
+function part_two()
+{
+ let res = 0;
+
+ data.split("\n\n").forEach(elem => {
+ const line = elem.replace(/\n/g, '');
+ const chars = line.split('');
+ const cnt = elem.split('\n').length;
+ for (const c of new Set(line))
+ if (chars.filter(x => x == c).length == cnt)
+ res++;
+ });
+
+ return res;
+}
+
+console.log(part_one());
+console.log(part_two());