From accbdf81a9bcdaaac6d5d12f9fa170c741903794 Mon Sep 17 00:00:00 2001 From: Bob Date: Fri, 5 Dec 2025 17:35:24 +0100 Subject: [PATCH] day05 --- bob/day05/day05-p1.py | 41 ++ bob/day05/day05-p2.py | 60 ++ bob/day05/example_input | 11 + bob/day05/input | 1183 ++++++++++++++++++++++++++++++++++++ bob/day05/my_example_input | 12 + 5 files changed, 1307 insertions(+) create mode 100644 bob/day05/day05-p1.py create mode 100644 bob/day05/day05-p2.py create mode 100644 bob/day05/example_input create mode 100644 bob/day05/input create mode 100644 bob/day05/my_example_input diff --git a/bob/day05/day05-p1.py b/bob/day05/day05-p1.py new file mode 100644 index 0000000..86c1a84 --- /dev/null +++ b/bob/day05/day05-p1.py @@ -0,0 +1,41 @@ + +def item_in_range(item, id_range): + start = id_range[0] + end = id_range[1] + return start <= item <= end + +def check_item(item, id_ranges): + for id_range in id_ranges: + if item_in_range(item, id_range): + return True + return False + +def read_input(filename): + id_ranges = [] + inventory = [] + + read_range = True + for line in open(filename).read().splitlines(): + + if line == "": + read_range = False + continue + + if read_range: + id_range = line.split("-") + id_ranges.append((int(id_range[0]),int(id_range[1]))) + else: + inventory.append(int(line)) + + return id_ranges, inventory + +# filename = "day05/example_input" # 3 +filename = "day05/input" # 679 +id_ranges, inventory = read_input(filename) + +counter = 0 +for item in inventory: + if check_item(item, id_ranges): + counter += 1 + +print(f"Fresh items: {counter}") diff --git a/bob/day05/day05-p2.py b/bob/day05/day05-p2.py new file mode 100644 index 0000000..2ebbea9 --- /dev/null +++ b/bob/day05/day05-p2.py @@ -0,0 +1,60 @@ +def item_in_range(item, id_range): + start = id_range[0] + end = id_range[1] + return start <= item <= end + +def squash_ranges(id_ranges): + + while True: + id_ranges_size = len(id_ranges) + + squash_range = [] + + squash_range.append(id_ranges[0].copy()) + for checker in id_ranges: + + overlap = False + for candidate in squash_range: + # Squash if checker min within candidate range or otherway around + if item_in_range(checker[0], candidate) or item_in_range(candidate[0], checker): + overlap = True + candidate[0] = min(checker[0],candidate[0]) + candidate[1] = max(checker[1],candidate[1]) + + if not overlap: + squash_range.append(checker.copy()) + + id_ranges = squash_range.copy() + + if id_ranges_size == len(id_ranges): + # If no changes, break + break + return id_ranges + + + +def read_input(filename): + id_ranges = [] + + for line in open(filename).read().splitlines(): + + if line == "": + return id_ranges + + id_range = line.split("-") + id_ranges.append([int(id_range[0]),int(id_range[1])]) + +# filename = "day05/my_example_input" +# filename = "day05/example_input" # 14 +filename = "day05/input" # 358155203664116 + +id_ranges = read_input(filename) + +id_ranges = squash_ranges(id_ranges) + +counter = 0 +for id_range in id_ranges: + counter += (id_range[1] - id_range[0]) + 1 # ranges are inclusive... + + +print(f"Fresh items: {counter}") diff --git a/bob/day05/example_input b/bob/day05/example_input new file mode 100644 index 0000000..2e9078d --- /dev/null +++ b/bob/day05/example_input @@ -0,0 +1,11 @@ +3-5 +10-14 +16-20 +12-18 + +1 +5 +8 +11 +17 +32 diff --git a/bob/day05/input b/bob/day05/input new file mode 100644 index 0000000..5fc9813 --- /dev/null +++ b/bob/day05/input @@ -0,0 +1,1183 @@ +169486974574545-170251643963353 +350457710225863-350888576149828 +412668022187283-420338049796469 +83592398782322-86848354888786 +543631433070278-550047239522393 +54642106271472-55339277279689 +53411401957158-54202606041934 +161774338930928-162461408006849 +230409669398989-230409669398989 +11394209724752-16043466617348 +265838296793488-267797579010038 +333958375901986-340440511082582 +365878561655587-367060734788885 +206173623518495-208892725730242 +283627389269124-287511159291116 +153365292360184-156019673771099 +75536984781079-77165727327975 +1619411001861-7121891284565 +481329981942543-482000629244722 +464553468357734-471131581665134 +432458385573270-435515334151023 +70448752368732-72110305170811 +347882670820002-348212468442938 +72545735761667-73944254348695 +25337145734852-27963159368492 +350677402162432-351380994452023 +546416799583850-550851120598346 +272929947013386-280747977038405 +200502607169613-200502607169613 +475873361991877-476277337247539 +342101939844008-342852058158447 +486239490794954-490237517599172 +222455214858287-230409669398988 +474010097524065-474827654040207 +53411401957158-54202606041934 +360113865157894-360113865157894 +480910238254220-481329981942543 +516174197223468-518816402892832 +201659428112760-204121615094505 +57717408554543-58122407961906 +395911803566308-399327053790244 +508868788402312-508868788402312 +368405259282444-370023111163741 +314516326843655-317549268809184 +162232350328601-162461408006849 +559686803138542-559686803138542 +103338608596923-107554094171651 +32913975686374-39732989816222 +523901130815537-530703460706557 +32913975686374-35290859827001 +364003029454290-365324584461110 +477889387261903-478118316872151 +20806909809692-27963159368492 +345837526507522-346164565414866 +51740513080594-52409085527159 +303484971907692-308412681226401 +183906237377184-187976347273481 +384706908852909-390346194454490 +57852974455319-58122407961906 +168689784685610-169356995569703 +54886545352890-55257966550262 +349114039096987-349487320391028 +146788372377156-149108300248003 +362928567972307-364510430479176 +427408359544251-430040269311236 +167568672967860-168207345342844 +348440577989652-348894196644023 +43208227708230-49758804908205 +367769727274544-369109029982678 +516174197223467-516174197223467 +405856375959476-408496944374436 +347882670820002-348440577989652 +274598539023818-276871897377653 +235424258744543-238506621244425 +172630392640057-172630392640057 +208050863272740-210361053323478 +192237219410593-200502607169613 +134729473420702-139983892386141 +474010097524065-474305905223759 +73508267403983-75291144718480 +477087245968109-477889387261903 +345837526507522-346478567624106 +62613903146308-62613903146308 +86848354888786-86848354888786 +126394728062228-129522049716478 +412668022187283-420338049796469 +283627389269124-289921833430318 +342401173107874-343162908583358 +241750786712108-250182753568904 +247240895255314-250182753568904 +476651753875225-476960040171256 +345148890039103-345455454180186 +167772840329548-167985941724660 +494234352071136-497303892670947 +473347411356836-474010097524065 +59397707463417-59966343820842 +153365292360184-157936077085284 +324686108322897-329753102093113 +52946002321587-53411401957158 +533445638590445-540186367605755 +292298385683753-295792444429555 +57717408554543-58122407961906 +314516326843654-314516326843654 +55849580681255-56357141651164 +231698593106163-235424258744542 +434256671568972-436538941154228 +439104555586761-441593495703514 +384706908852909-384706908852909 +164762330697985-164969667575089 +362276900056335-363670143941921 +366541882302880-368122635566150 +11394209724752-16043466617348 +343999514461259-344509033218459 +203436319276917-205640943197084 +349637919178361-350026632310006 +52640081604997-53117523372446 +503203389229978-508868788402311 +92989145845687-96524214733722 +163044740996218-163240511195133 +76752836650791-78123362707607 +123455758474555-126394728062227 +101424352095858-110086771279740 +525619552424679-528959977856256 +183906237377183-183906237377183 +554074836948068-559686803138542 +77779604315574-79158148059598 +141205463388944-146788372377154 +370452833833991-371897898223566 +49758804908206-49758804908206 +374114511950407-377644029616368 +494234352071136-501863783760968 +478600117928393-478824710671111 +172630392640057-179520209905481 +423465253017527-427408359544249 +78635312190451-80232475910069 +377644029616369-379811872274849 +355131858666440-360113865157894 +475033176088839-475649812150129 +254798182447389-259910083230244 +58995278820687-59397707463417 +112810316106639-116323918708015 +345737380640930-345837526507522 +116323918708017-119144923116978 +212623125402992-220123949658034 +348440577989652-349114039096987 +484679585430218-486239490794953 +538678075001302-540186367605755 +130987447947074-137332783042981 +62613903146308-65939644438015 +403504575059351-410013419146208 +364943267837974-366372560110142 +481108061072351-481329981942543 +437720846119634-440454991965740 +71584582295120-72963896717108 +472513591299362-472918717631593 +464553468357734-464553468357734 +392482661906061-399327053790244 +74524649575795-76267967421178 +168207345342844-168583893783486 +477087245968109-477279401948376 +55849580681255-56751399357064 +436347159101619-438410653267442 +51298814197636-52196252110091 +163044740996218-163633550337293 +342770680395427-342852058158447 +1619411001860-1619411001860 +454830743926318-461227564607971 +204512289107481-207201836850737 +295792444429557-300642043871836 +167985941724660-168583893783486 +480910238254220-481695161883099 +265838296793488-267797579010038 +478600117928393-479038689890985 +454830743926318-461227564607971 +51298814197636-51740513080594 +369404546102670-370868390469186 +345837526507522-346164565414866 +304645312705932-310580105808502 +251935678435015-257633285751739 +329753102093114-329753102093114 +443500959989085-451450465997509 +51298814197636-52196252110091 + +166774327825644 +91047458369966 +404952508284339 +378520907949428 +325621911145521 +268242101107817 +546085944803731 +454899401278924 +88862938669386 +496100464432050 +289057181519769 +90727792836649 +337288198669145 +429094156122272 +343633512916410 +92886236123125 +378139567233455 +439641576767616 +247301227994645 +68713748805875 +208716676008021 +497074374734370 +559885823894181 +492095693832264 +554963120377769 +443896984163009 +206006923989321 +483032749206065 +47577646102574 +292521463036307 +216230717404539 +448739194445012 +442035479231881 +519714926322577 +403713656861498 +374756451523046 +478314416927106 +377836316243415 +498772052463351 +333022116865348 +135692758943211 +294037907597476 +263323517435128 +440825739263296 +434995455366622 +337212881252755 +146153984473380 +448601868945693 +408100845362893 +35583521113278 +225403433549332 +317696241596672 +312014019668924 +362115200307652 +554760333330106 +154282704810251 +438959797352439 +319452260444851 +473156766088282 +198403531998350 +504423873956916 +429367609375118 +126266607271906 +26674090809762 +530017595777797 +77956466007652 +143490545051443 +250510694180056 +326130853845873 +205070489620183 +147090705023854 +204182443095809 +288679101880747 +243801389965051 +182008355369256 +45128892324888 +476607297358048 +531771182080436 +73516497016098 +316726833468449 +362906532335825 +435314854551601 +290974906905504 +157230439564388 +86563221570145 +24063423156372 +43581070629947 +427217170097429 +395299379557797 +544551981061231 +15205854665320 +53234016286885 +399136093173212 +292094746756200 +491175189160611 +199251817787429 +111086427066885 +471998625163919 +273174678462782 +490995373871544 +34898033068500 +229275663034833 +419334245035424 +41965901830193 +407830580606630 +27502544185036 +156565938081564 +514048184413057 +521744695790109 +141491285324069 +392325069875868 +510980130947114 +174723942867829 +556352074108761 +43427842503161 +146696161286344 +104746357885859 +15275765849861 +281559681026688 +429139225151741 +396910615804192 +442408317235005 +132772453136679 +155135334989459 +200470713530827 +220689700977119 +168334134153744 +157503332651641 +149663209145269 +343632254653643 +497528664863277 +106690107773611 +34099564590700 +448413992513436 +475520911454283 +301687971625084 +9980454276181 +240111072470395 +37340591261478 +288852137211212 +475298931312112 +214515170796338 +500110784985138 +515633106108978 +544761044008642 +112006257449342 +342516445985685 +73401353536885 +123678078844082 +206016682334723 +485144331084789 +90165056085394 +77579052160686 +499840743815185 +237563103284284 +139759202638467 +162227122680255 +113057027572568 +438666695332958 +158470826981849 +535518691265400 +254227700432454 +253825750937685 +560330325476428 +154600147802843 +549790739569034 +289873164396695 +539498241340336 +547087343925695 +426793043068177 +69406275853236 +14173153440243 +306613204257181 +335628041490725 +77668534832095 +408856705538595 +52257595224282 +378047409571086 +139108263947637 +484991719095291 +493284067026758 +142677908005147 +63970767087445 +546284579954929 +336645727455680 +92019100262899 +13529714907659 +222144029068424 +545536837640330 +428432432029515 +459840949966208 +447710485749632 +498615999177888 +130650784933857 +33555847493984 +449331183743590 +488515663620787 +553075138140193 +61441497652823 +153914238077790 +496362331734422 +314346491893291 +440155676882947 +379905912125002 +99554008377065 +45081920765806 +505235190993142 +306393771255886 +319907372816476 +277228163816061 +400768808830359 +510582755621519 +4194290219194 +481101819993467 +523353832646727 +205765537357831 +343468690986522 +131578423633226 +434673084239015 +371766027051303 +144329935374669 +139437541951224 +465802130555913 +167902011625254 +72057652886449 +347437328991353 +263451819863886 +192977391964026 +492929013900137 +154794338298037 +522652226020058 +554923432030486 +519919555270186 +249518239643285 +358970107775753 +80413199256712 +275594334714499 +553421607746393 +98275619718110 +302825984544905 +174717141496020 +230288973137562 +292589182404411 +505687418573659 +349247528804259 +20293692905023 +240453445858027 +224257842516546 +304130767608387 +304907136037024 +408166394354772 +103523839764491 +73232136461566 +140468463705508 +311772003245493 +331790724794140 +93708199162906 +162580150832440 +449460000094559 +277197897984645 +205763891375110 +19084635772736 +496419186274794 +470727201928223 +485281849665196 +552053076054079 +431468704048245 +76281897291 +349523959877693 +270456878893079 +111101684122584 +465800898958960 +322283852128561 +455213177508997 +247665311665579 +500922881756589 +219524289499707 +115323986356921 +37301704048791 +377657381382923 +399245034825861 +399137551109704 +285052077702242 +175745328787311 +245041458958184 +35936598644078 +547099513362520 +359611859652486 +204033001215851 +29342247975471 +39126462245283 +443969245402798 +347385388155441 +109989290386312 +153901115627129 +402919114061017 +286247392087343 +328624943744608 +236904877535583 +523236113372747 +434675877307776 +27674435121456 +378216883223033 +282898606567911 +56026201149263 +464544460566619 +248276994486089 +273492366150243 +171087374795861 +405435698757553 +468944442788875 +7049732367352 +376735622849138 +465012318485387 +198100033101471 +285562486089743 +386344157741757 +211071073318516 +271557956243230 +316094793010015 +526573252229373 +150383520289242 +353008308480241 +33123570103319 +453952884356644 +366157930303720 +397812086863838 +124217788847844 +105934191361195 +49745618863657 +122008798112999 +285249575332918 +239025960707951 +191925873999393 +511321770610334 +198592227375691 +172719309600276 +303636693797816 +400470943462252 +525625440685246 +202232306722844 +304151285095384 +358632108681359 +32705945457149 +429740280260146 +130138390342090 +206605674498611 +483121948365376 +250510040752339 +351921064694049 +535953664899745 +158982805815737 +266481019547471 +231185500366155 +375457642508105 +379254716521887 +522704569941592 +253921764244290 +376581066623112 +482448004328873 +92897693882413 +308082658112356 +134926238563825 +552017602142312 +499186706253637 +228968019568939 +552698362888668 +413972746049689 +184067938318774 +235837199222396 +496246484173299 +531756589501261 +480286521324801 +376794227331873 +526362702872444 +252465295891886 +66438065687693 +523692313003135 +75474495675861 +407087658568321 +299103592741349 +489933891930451 +469566832122542 +236585411136668 +385792759141446 +199862910462477 +204234857664791 +436025855142507 +447086196413929 +474562365525964 +104199028836605 +559091073788308 +550823053762154 +12554729643032 +458024648847184 +529809193948024 +230755709261846 +515708781882909 +430686836417890 +427022962074744 +10344169433954 +529600667662099 +314031716058590 +380415441188599 +80735780063370 +147995713700406 +300154675727708 +254100597066464 +419430042425209 +347898083694759 +249982748292502 +131591948140352 +198961066256750 +254064651718220 +294549907082315 +355855335549975 +39095550579264 +215057752113540 +198911085823360 +105315096195198 +96911775053522 +9752114023042 +119608753327095 +352109210076272 +299660081952358 +221342243195663 +449827754968231 +93161124128574 +90560460067988 +496820623206224 +399035515487329 +467039225296969 +226205475803100 +406250706063702 +161376090137496 +466642236986406 +87720858451453 +539998160378913 +474240741925151 +277488291971913 +450850530532280 +482580184705728 +15178409260792 +369966906873577 +400180173996328 +545520527368074 +554039014929435 +120288590508287 +480499899695046 +30680680513644 +395953882351651 +331163443172107 +538320803328506 +133848213353087 +145447720285170 +530096349236746 +135712192178712 +172660263989807 +310646583405735 +150976892032270 +80303563356605 +72150987366375 +109574604058464 +332565509676132 +157262606965695 +536137192446697 +142574755052471 +547002315544389 +325580540545510 +511807714132532 +63170811304147 +238171943106505 +32278044680851 +179196591322316 +60476845998806 +284676411075326 +389916634471871 +283424058473505 +35677745835226 +159735707193319 +165751606408001 +495282293549472 +236887629497311 +357049330901689 +446024442218974 +330289464969167 +261767824871893 +547134171577378 +271894738315108 +464445794485769 +283707594225371 +253194669396361 +325228375230067 +100167990043675 +327074956674009 +347177664977676 +372780048698071 +219800585406824 +498885421047630 +512193212681227 +136278702175098 +465930952499220 +494968478723722 +518730224649751 +341718847619297 +369179893782034 +18121280125790 +502047998998948 +484247612508853 +243685163913354 +173885282196723 +454559310285359 +222481381853756 +36481973632734 +116568229233070 +200682472235708 +367381773923936 +318140580419192 +112746752748157 +194425586115078 +139920342874717 +477854212858029 +212782546089078 +411702881636276 +54614831725181 +119613230049112 +107957548533008 +306551673436599 +549081498723393 +548626856154576 +160349494359209 +324318282735730 +386448067125454 +27300210555086 +514902811407797 +108516545097433 +533882495640448 +12389113182564 +196435848198080 +200386570578615 +327994991203546 +224990930591296 +207258895819722 +468283840902024 +465322974978643 +417331553592809 +267062196670485 +534882878531783 +485795748442565 +124686049206296 +122417371941044 +179677582114325 +355648713774809 +456775682757418 +455875269976321 +201520187565331 +313468690853343 +388607312186246 +407880900356278 +505910380417316 +521668910461157 +302438493660595 +68632453018008 +216516287566682 +220153010370991 +170743111358423 +476602833583011 +136714925539866 +138542773800608 +247937496976447 +544572691111046 +422461680747741 +495972631659052 +396257346899195 +165858869725569 +184036350334348 +114816205868801 +468919534915319 +359698785498507 +132331751780775 +239718654581434 +50834178782395 +161964306160464 +31349446995438 +169847193913893 +554036884459619 +70888025693166 +467980930193560 +87169550705955 +352889260590027 +207006180941867 +101192316051676 +418316979509841 +275255999278932 +500211864880517 +247683565035233 +358000736149919 +179092401762171 +262295061294554 +462291069839473 +362219924628579 +35584727855687 +495689617672703 +321096712807163 +156364174620707 +437031146558623 +446679647768106 +184440728802140 +179356086860912 +306891786124622 +268358471924233 +365713738595080 +252110336879163 +521753426679053 +142089571248901 +233364018812935 +370243133281741 +432653663089468 +532163582734910 +245359058488424 +298473508335275 +14031841956723 +57758508231202 +276785474301686 +387031828270953 +418561042543787 +226025352024472 +168616632323375 +311324670253932 +547033628524340 +337858669245797 +378941433166064 +434546414339480 +78370809294330 +102398932025390 +27462225362802 +271644860641047 +59211680553870 +374355924515856 +494149562346856 +213796833170602 +128135299204247 +84211937157469 +107789712965090 +315004087428381 +178674310012579 +94222198781966 +501454541701207 +365333830515032 +16161431876644 +224979397972164 +421498139560827 +412437440049979 +209121212751838 +293402144169905 +58518948754701 +61064684714537 +263104024059027 +415830606177897 +116101661231073 +287296300703319 +493171466545647 +384809141661398 +366268084709017 +5818563609451 +120385781854262 +205173946461332 +54227022193045 +113669352148263 +104280079340054 +238631636388913 +515441396296070 +159206962175763 +302525814386414 +339164299598453 +409578249037337 +70028767566230 +551246401580664 +90986719623993 +239400067544876 +443230144976513 +186795213046561 +140231198077831 +368739361751067 +452456527289621 +171671532434000 +30931652757817 +416957992048482 +463069395875833 +253755350992279 +349965935700429 +133749783233188 +180340731313778 +33363980680018 +374134294864507 +428936219872049 +206504381518276 +242106673977763 +78473546271018 +406533910239398 +348365497824643 +422545173570195 +385468965921062 +389459883982367 +274101373507453 +459134086881060 +260614137764036 +432619487732863 +75943978969609 +505570839641777 +444169632072478 +312730304789069 +197557319636041 +543647435965560 +408265085050905 +281586696861111 +171123135278775 +169177863584715 +135874101403130 +209377109419580 +256271393941940 +70452063565247 +250769496553007 +223944217959492 +108632638730605 +451964402873132 +339383738439337 +314755936046586 +251717159170970 +414342097829544 +49274921382019 +440343085052918 +272517019507874 +503487049856713 +304083032446976 +9836321621803 +557853443983096 +386806299514432 +230379467150045 +232023573717795 +274489679300692 +401325353109711 +344716266688317 +479400650716478 +123206571735690 +384655568576539 +219773398158939 +31295584853941 +143433803077974 +7561633804086 +85756695376827 +398284723132607 +26623728524409 +83183595817576 +286957840183868 +120636608165605 +357724055042151 +469680621960771 +384067541851018 +405289416687099 +410808664927062 +238794187284823 +414890307360090 +196104637822439 +127544444499349 +221984070862241 +132518041974535 +112940565231543 +265275705436390 +479025893934810 +314505867497367 +496263702544464 +148143576830654 +115376626359323 +557691219367239 +45905454760957 +524675720827548 +22064684741843 +252994432278803 +517397261955144 +452871657432505 +337201911451932 +88763534103445 +173676858500472 +348768711387613 +138471044229711 +95399248614045 +68285619776492 +318457822556018 +525105694589579 +517805457516633 +378989018882559 +368298292538616 +458658561435518 +207422464400509 +181866569133454 +525640297406461 +129229881420908 +51717759679443 +166092571951220 +256408042663479 +275292791989704 +118319831731504 +5633133708006 +194395191717822 +310435849658461 +463025478328394 +527077985492674 +21106581449621 +523549300613533 +398214390451437 +171025532583124 +213138707290654 +326653422501064 +477914754170203 +267571570824864 +46626246940772 +476735477541776 +145035252872093 +187916186413891 +371693525502994 +168673863508163 +346959319988017 +454491121936793 +217885984189970 +299221157582395 +164810512090946 +212519092200144 +189755604591660 +86785344019253 +123692871131037 +275273479722087 +172201699513478 +307100655626988 +8429324160009 +11688874902984 +93429701044828 +87505554320007 +192547267337156 +424980042713196 +232232355674129 +120882770297477 +400642598192429 +112474076477861 +10340906762331 +468185262885354 +473115146434914 +546220244501277 +230746941039487 +474003157713676 +44868234288982 +134879528193057 +423906683473633 +212063817695168 +271695045483699 +409441138399226 +476263702459672 +516238652632498 +352219807950940 +428243297944988 +141935371043504 +365325692257606 +221266910655110 +3169796195887 +367133246977675 +458638914268606 +381166588589841 +334196333309437 +249709703265767 +366808681147270 +140601356365909 +490426342099955 +319540267637888 +372354531067299 +108558567973915 +219216361647628 +490413942590716 +546169226369143 +267961218722974 +316709186119253 +330318122561515 +7914554630956 +214248574179445 +225217158276800 +266018543894708 +76916781182273 +61938963784429 +290159525874705 +31456612431862 +84679786180184 +172374064863107 +37353984479663 +340133489894036 +280746496541083 +60142024461394 +8862582481952 +234025965023325 +93054503232686 +539882817169577 +536566109891024 +144011267061452 +451312569796552 +350329972823014 +476257951614801 +45590639642899 +451351680776874 +425164577202709 +226607172134288 +227902543752441 +326465979074352 +181342541666891 +462660700607043 +150224259144078 +488630331998626 +54860468478369 +101914026619125 +294756653101713 +202272597191959 +76050673612329 +238860757008309 +48621264302279 +14319569575066 +560780594889128 +144584257609115 +7002261598710 +251737669455207 +102490965796155 +254089228645909 +458850237935972 +444494162113316 +342612583612144 +203261620323802 +130739573902267 +556503818068118 +558892062105595 +36094704072154 +95593696940294 +244216036056071 +263649852755312 +125782927760917 +318698954414381 +163405285563569 +62989351003745 +483851364863882 +85875561472613 +258960741690709 +407576336377045 +448360245242560 +249577485109234 +433669489426532 +219916919792675 +148832385339069 +32205722322915 +32897635016190 +177545108774500 +91884027353209 +89540680416542 +141028982943171 +242867991040476 +200955710974663 +259952079512445 +426148978382011 +524766003835077 +75783352497314 +279339636090366 +374415735625254 +280956513062478 +494710165439429 +508379047536234 +280690636971471 +396012124017689 +248444391158398 +329249791188540 +216762541147551 +259537664996523 +113005729648331 +460214823752344 +30372390699746 +383470652629746 +56469028751500 +235911537030805 +395352178290627 +145022639218919 +36303214253904 +77113739462114 +332613040134789 +368179871295577 +54500507778458 +559819181914339 +359024060500704 +142775441258314 +555929172898758 +234335170287736 +432996614204002 +265211936254785 +219076815767968 +470376747245611 +195650968848679 +186443234315411 +531724905067097 diff --git a/bob/day05/my_example_input b/bob/day05/my_example_input new file mode 100644 index 0000000..163bed4 --- /dev/null +++ b/bob/day05/my_example_input @@ -0,0 +1,12 @@ +17-19 +3-5 +10-14 +16-20 +12-18 + +1 +5 +8 +11 +17 +32