feat(2024-03): Add day 3

This commit is contained in:
Josh Creek
2024-12-03 21:43:12 +00:00
parent 70d37b1807
commit 7219cdab40
3 changed files with 139 additions and 0 deletions
@@ -0,0 +1,6 @@
' mul(382,128)select(){*who(710,947)mul(117,325)?$#from()/select()mul(829,251)}@mul(17,183)(:*when()}?+,what()mul(911,142)[:>)who(824,820)/mul(199,484) when()mul(325,240))select()$~?'from(387,163)>what()@mul(920,723)where()}(#what()<who() !mul(274,899)what()mul(664,836)}~who();how()who(537,994)/(?]mul(257,635)^when()don't()!what()}where()#:when()>'where()mul(360,222),when()@&<^mul(268,245){{)%:from()<#mul(936,776)$select()!mul(474,825)how()}~mul(484,39)!?:@[*<mul(357,805)how()mul(261,810) {$>mul(306,422)$when()when()/@$$!mul(944,563)<!%!(from()mul(47,642)#^(why()(}:$mul(403,781)mul(382,778)$%$-)mul(48,400)@{?select()-/%when())}mul(114,537)^$&{&select()+why(){/mul(688,466) ):mul(950,333)when()}what()when(){>'!%+mul(974,802)what(291,78)*mul(394,250)why()<;mul(271,377)how()%**@who()*from()mul(569,753))who()*^mul(83,470)#-{from()when()-;mul(678,845)where()><;]$do()>what()(#)how() mul(958,48)select()from()<%mul(965,566)!};<where()mul(926,836)>*when()?)%do()}mul(465,920)>$%$when()mul(905,944)#$+~>mul(738,782)how()]&'{~from()-@-mul(671,73)#@'+when()(*mul(981,305)(],%~why()mul(943,403);*(& from()mul(773,597)from()?}who()mul(177,608); when(){'@how()how()$:mul(615,69)~>: ),(mul(273,327)&from()(!:mul(588,34)&);,~}&]where()how()mul(476,402)when(886,135)'what(435,192)/]]mul(70,477)how()[}*^mul(826,769)mul(630,778)]when(201,168)!mul(757,817)//$select()what()mul(704,71)why(274,220)(%<mul(880,91)'mul(482,52)what()?from(),mul(451,632)mul(744,609)^(!?from()]!/(+mul(851,817)&/~- ^ mul(879,78)(}?:what(){~what()]mul(955,80)don't()@)how()select()+ >:}}mul(11,257)mul(755,926)/mul(822,333)/;:;*(;!how()%mul(944,27)[,don't()where()mul(682,325)@ %,!*why()%mul(159,46)mul(999,996)+mul(181,447)?{(mul(79,247)$&mul(646,108)<()when()mul(446,87)@from(){%&do()@}]']select()mul(769,704) ;from()}#what()]mul[:mul(342,860)where()mul(297,907)mul(785,738))@{who()mul(22,569)[mul(712,864){how()!{/+])do()how()how()!how()) !how()mul(910,77)select()mul(148,162)'&mul(851,438)?]:<'mul(318,433)who()^who(911,849)who()@&mul(334,691)&(*~'{mul(16,725){>[;(mul(302,212)-% }*<who()[select()mul(749,290)'!-:#what(699,227)&mul(438,485)how(){?select()! {mul(155,334)>);+$mul(563,825)[,select()*?&;&mul(67-~, }from()who(538,48)mul(40,124)~who()from()select()*%-mul(899,517))~} /mul(343,252)when()/#select(),/mul(72,213)what()when()how()>mul(935,677)^'how()%'#{(how()mul(418,773) ;^#mul(299,393)mul(235,99))^mul(755,736)$@%why(932,369)%why(),>where()+mul(959,630)?$*where()from() /<mul(390,582) mul(447,741)@]mul(856,87)~ from()**+mul(382+>from(116,616)'who(432,265)why()mul(619,939)*/+#)}>when()mul(237,787)%who()mul(748,973)'from()mul(464,286)how()%what(561,705)^'who(384,159)select()^who()mul(61,599)who()%;-)(mul(732-&*,$>]+'who(){mul(545,911)~),mul(145,677)when(930,741);]&mul(71,580)where()-why()select(480,732)~?}mul(989,226)&?}mul(649,981)why()(who()how()}what()mul(384,957)where()^]?how()why()<select(542,530)why()mul(90,741)*^?>&*{mul(874,34)(,mul(727,198how()mul(597,301)<%#[what()**mul(874,920)
##who();}mul(720,444)!, ><(;:don't()/why(723,831)[!}mul(369,122)mul(323,653)mul(399}-[where()<don't()'select()[>where()%!mul(22,35)%{^mul(361,680)< '?'when()mul(957,696)';:{what()where(),mul(486,390)mul(904,888)@^$why(); $,>mul(121,356)>mul(286,496)select()mul(795,126)$don't()($:::who(); mul(274,833)'[*{-$;#how()mul(751,302)@&[mul(706,87)^*[/mul%%]$where()when()mul(783,984)#,&+mul(168,887)(<mul(750,257)/]%+@}'?what()mul(392,217)what(26,757)- select()[mul(990,616)?#&-#&@+from()mul(197,805)'(;$?@&%mul(580,340)[from()from()when(61,541)^%-]who()mul(674,55)who()~]mul(697,276)@ why()''!)mul(7,647)what(675,633)don't()from()mul(686,704)-'mul(134,95),!who(606,265)how(306,751)when()mul(931,199^^'}/{>mul(342,16)-mul(349,74)[how()+'?~>mul(201,421)([where()!(why()mul(225,997)+(when()where()?mul(596,977)mul(62,3))&?mul(71,292):@mul(174,534)<:,[mul(632,674)%~>how()select()<[;!mul(171,886))@#,>mul(377,649){%]-how()>mul(987,683*/<select(340,4)';;select()mul(486,49)how(371,925)mul(189,478)what()@who()-<what()>*$mul(501,233)<]why()mul(950,491)mul#how()(~}mul(802,155))#how(787,150)where()*select();'mul(656,363)>/why(671,607)'#/when()mul(290,337)from()]mul(51,638)$- ~;@&from()}select()mul(87,608)mul(116,583)?)$'{,$#mul(934,503)who()#$how()~/--from()mul(394,714)]~who()<<${}mul(458,43)&mul(639select();{&from()({;$&>mul(61,244)why()@mul(179,386)<+]don't()'#mul(310,95)<(do()mul(199,244),)>@who()*~(do()&[&mul(715,542)mul(243,209)]&$~?how()how()what()from()&mul(235,191)$![(mul(684;)?[<%[how()(@&mul(204,446):$<+$;!mul(739,161)[select(162,352)?,(!>mul(606,959)@who():%*why()<@mul(941,267)mul(109,191^+]*-mul(942,63)why()-how(){%,do()-mul(843,484)where()why()what()from()#*%how()[<don't()]:/{mul(564,526);{//;mul(622,540)where()&/mul(400,561)from()?#:#?&!from()mul(996,939){~$don't()who()(mul(64,295)!?who()/]%#when()mul(239,553)where()who()}what()>mul(238,969)-+* where(308,88)&mul(454,343)$<select(67,532)*when()mul(664!^@/mul(390,586)(why(){mul(74,208)%~#{mul(230,839)[}?who()@}don't()&how())(*@mul(206,499)when()%%//@'}from()mul(243,908)[mul(484,803))%why()why()who()mul(740,39)[:+what()}^??mul(27,646)}[mul[(!>mul(993,84)why()!,<*when()];mul(184,126)how()%#^select()who()mul(890,36)mul(495,836)mul(486,448)mul(726,802)mul(713,282)mul(69,470?'),from()mul(861,820)]mul(369,778)-who()]how());where()mul(645,582)from()@!mul(646,390)what(143,98)mul(465~do()@+from():$}/mul(783,801){select()?%select()what()?+mul(393,573)/ mul(920,302)~?mul(679,329)where()[}]+;mul(833,762)mul(585,568)where()@}{<mul(698,887)?,do()/[who()%~mul(713,408)mul(15,92)mul(841,490)do()-who()~mul(124,658)~how()*&',]mul(991,749)when()>^#[%when() +who()mul(746,929)&,mul(224,355from()where()::*$mul(954,543)%what(),mul(607,408)?<'mul(465,49)(how()'-why()who()mul(935,437))who()where():/>#where(131,595)why();don't()where()^select()from()who()-who()when()mul(745,270$mul(509,38)< why()select()who(){select()where()mul(980,337) [/~+who()do();$ !:*{@>(mul(536,465)('$why()/>what()';mul(534,315)(from()[~]from()from()-)+do()$when()%who()mul(644,668)$;from()/what()(@&mul(977,702*{~;what()*where()mul(324,603)do()!}]when()<mul(707,240*what()&(-what(284,801)mul(153,26)from()*<]when()>who()> mul(647why()what()[+~@@;+ mul(186,252)~]%[%+ &:mul(405,534)
++mul(579,526/-&/mul(996,519)where()$(,(@% (~mul(653%how()@][don't()(+where()^?>}mul(426,711)##;mul(89,834),when()+-%)>@how(551,945)+mul(33'/who():who()mul(330,473)(why()when()mul(729,170)<{&(<who()^&[:mul(136,171) ]}select()mul(650,140),select(145,713)why(),from()when()mul(215,81)mul(2,321)*,%mul(347,382)who(390,917)mul(517,832):where()how()@]<mul(179,869)*&where();'mulhow()%who()*+#who()when())<from()mul(695,438)+from()~/when()+do()*select():/'%}??mul(659,454);<({mul(10,165)<mul(422,149)$/mul(842,666)&-$'$-(~how()mul(884,29)}why()&){mul(443,833) why()mul(248,50)&}$why()#what()]mul(816,74)mul(287,583),select(){mul(916,265)##]mul(565,495)mul(391,534)what()mul(222,430)&mul(812,448)],where()[when()what()[/mul< from()?why()why()mul(339,529)mul(530 *mul(346,750)!why())how()?-#mul(274,115)where()}:select(694,823)why()} *who()}mul(827,676)why()~}+)(}who()mul(726,201)(from()?*;what()when()mul(957,551);&@)from(81,526)where()};when()mul(693,392)why()select()mul(163,738))[mul(928,181)when();:-(mul(490,341)/^]when(679,90)select(182,576)[~mul(79,842) mul(118,744))do()*select()who()%where()mul(150,59)-@~mul(123,997)how()#]]mul(996,553){mul(799,235)^<where()) >mul(450,165)/where()}where()mul(416,829)-where()mul(681,77)$when(); {how()(},mul(566,968)^?^[where())#]$$mul(320,701)select(263,668)!mul(84,690)*who()*!who()),from(152,890)mul(523,218)/)mul(975,325)() what(187,672)^how()'mul(877,765#mul(555,711);<*,don't()how()select()how()}mul(963,600)+$where()mul(754,527)mul(589,630)select()how()when()!mul(454,523):(;,+mul(117,299) ]/^]mul(682,981)mul(918,918)?mul(529,521)';}mul(29,4)@><what()/when()/^-+mul(922,126)($&?[()%'-mul(156,757);~:]why()*who()what()when())mul(582,926)-where():*mul(729,833)-[mul(455,185)/select()mul(494,904)what()why()';where()@{'}select()mul(701,981),;mul(43,116)'when()select()[>mul(33,461))>$;$%mul(629,832]&{[when()mul(269,237)?^@~~/'who()mul(865,880)?~don't()what()how()#!%mul(259,423)!*?)/(who()mul(438,59)}<{*;}where()mul(623,454)mul(54,758)!'do()mul(156,345)#(->mul(296,979)%]select()-(when()why()when()$mul(207,298)mul(232,19+[mul(240,552)-mul(434,728)#-)'/why()&+;'mul(314,103)([how()<~why()select()^,mul(278,666)@?why()]how()select()mul(960 ^mul(770,509)when()what(632,239)'select()mul(460,916)) don't();>> select()]{:>mul(796,995);)<]%[:*don't()*~ (select() )select() $mul(65,3),/?%$mul(862,120)!mul(243,135)&?mulwhere();#from()-@!select()]do()mul(117,795)-% [(^mul(427,900)when()why()]why()how()^-'mul(277,54)}when()}$from()<,@mul(398,993)]/-mul(314,397),how()mul(452,25)&#&:[$$(mul(71,963):[mul(53,54)what())who():'{:mul(169,399;[ #}{;( mul(708,894),}from()where()why()[>&~mul(320,139)*when()when()&*mul(69,189)don't()how()!%%;[{mul(276;when()mul(906,936)%;<!what()how()]mul(259,584)%(mul(746why()(/@;#?mul(708,571)mul(50,750)from()(;who()?what()#mul(535>+where(){,?select(),[%?mul(489,557)^&where();#when();?[what()mul(93,641)where()why()mul(184,380)[where(){?from()&mul(963,754),how()[#$@}^from()mul(82,608)+}where(659,504):select()<+where()mul(631,979)>%/%)mul(641,426)from()-#from(76,912)from()mul(640,544)how()^when()mul(13,213),*!mul(341,702)#!/usr/bin/perl$where()~[;;-mul(234,773)%^<-when()@mul(602,524)
why()where()why();?mul(169,662)(;?*select()>~<mul(6,518)$ #{,how()mul(2,142)/;mul(12,883))]~when()}-do()!,what()<;&why()who()mul(184,329){#}mul(691,847)]mul(334,849)$mul(566,562)]mul(544,577from()who()%#mul(912,145)!who(147,547)%mul(218,373)why()mul(220,659)+/[mul(743^~who()who()]select()select():mul(65,632)^>(mul(335,517)select()!$!mul(989,445)why()when()who(),mul(722,70)/when()/>mul(488,411)<mul(202,583)mulwho(319,4)who() select()[<who();{/do()-;+?+)what()how()>~mul(91,163)how()]how() [mul(415,153)(from()!>?>mul(910,831)when()>#>@where()do()mul(854,168)+!#how()where()[mul(544,146)>[mul(791,713)why()what()'$(mul(722,357) select()>-'}##~)mul(571,996)%where(648,468)-mul(674,399)-how()when()what(),where()}&:mul(364,273)*+-?from()]/mul(842,237)>)#why()</<mul(386,938)]why()mul(795,812)^;+'}[!mul(336,266))what()]mul(301,465)[when()select()+*<>^?}mul(916,535)-(/[mul(195,161)&'what()<mul(850,131)why(978,190)!)@+who()/+)mul(564,805)>!)how()>-from())}mul(450,574)mul(811,64)%:,#~!where()what()+>mul(626,402)&[why()select(),don't()!$mul(991,61)~#)mul(184}mul(573,326)(})}-}{~]mul(457,349$(**:~select()mul(214,536)when(109,839)^)-what()from()mul(951why()mul(250,791)select()/^~ )]do()mul(402,879) ;when(977,795)mul(411,599)}[>{when()why();*don't()'when()*?mul(208,89)?/; @ how(694,33)do()+~mul(201,648)[-#//}mul(309,958)}<how()select()@ %,mul(5,81)/[}how()how()@?{mul(745,240)(mul(993,109)>why()@-mul(204,611)mul(461,547)<mul(490,704),-,'$/select()+*@mul(531,461)mul(781,760)%where()when()when()$( mul(551,640);select()who(),!:+*mul(570,832&$@&,%/;mul(248,785)'#:mul(175,52)]{; <mul(240,385),^#@mul(844,722)how()}<:;>?;~mul(795,956)@]]from()[mul(845,908)%what()#!*)@&why()]do()who()from(),-(-what()mul(350,941)who(),$/$-}'mul(310,446)from() <how(578,215)from()[&^don't()#~:select(620,366)}!'(mul(714,32)]]%don't()}'&$why()mul(525,322)]@+;what()don't()%select()#mul(940,743))mul(569,393)why()mul(37,545)select()*];when()*^#do(),~~}#( mul(596,354)/&@&[mul(410,299)/when()mul(953,745):']&]-*?mul(732,334)select()$who()#~how()mul(751,328)'mul(191,153)^~from()select(292,12)}/]$from()]mul(595,904)don't()&{)@>mul(952,727);^(mul(471,971)@!do()@who()mul(634[%}select()$!when(267,237)];[mul(85,927)/when()-how()}!#mul(536,740)]:;who(967,614)how()select()$$mul(487,376)']why()+$select()+mul(184,719)why()!why()mul(293,122)^!^]$mul(544,91)from() >mul(983,667)when()?mul(708,478)<}%why()when()mul(48,916)what()mul(469,29)when() mul(710,466)-*) mul(855,660)!^@mul(558,202)]'#':where(271,674) {&mul(851,103)?( #what() }+select()~mul(700,989) @@mul(311,964)']]@,where(6,777)@;%mul(29,72);select()[[who()where()~mul(829,823))*>']mul(197,418)+!;?@::)[mul(628,50)^&?!mul(176,413)mulwho(185,962)+select()how()mul(804,92)/from();mul(284,550)[where()%&select()&/mul(342,336){ mul(382,518)$-; {#]#]mul(395,313))do()<>mul(652,359)%don't()mul(343,652)?'](+where()[*mul(677,743) >when()}how()who()mul(71,412)[,@{ mul(345,160)>);(:&~who(565,887)mul(958,675)mul(752,30)-*/?~how()(,mul(246select()from()do(){,(from()'-[@]mul(567,702):select()#how(921,881)mul(725,160) 'mul(327,488)?<>how()%/;@mul(836,535)
)mul(135,48)when()+@~mul(646,10)!how()where(944,161)&mul(247,681)^from(641,956)(#&where()>*where() mul(712,270)!why()}who()>*>select()+&mul(543,760)]why()^-~*:how(82,75),mul(991,653)what()#~{;;?@how()mul(445,300) (when(253,142)$<*]where()mul(782,558)mul(928;%>*,who(775,419) how()+'/mul(981,18)$<mul(814,71)who()[>from()why()@ mul(185,23)+~select()why(346,793)>!)^from()mul(607,452)what()$^+select(),* {[mul(358,551)?(what()[do()where():what()*>mul(679,221)how()^*>/::$;mul(903,901)~select()']}$where()when(940,507)mul(396,234)select()what()@when()<%/mul(569,364)^mul(29,750)~-@*'mul(188,408)why(){where(){:%from(851,981)/*mul(535,688)$*(when(382,340)<who(){}when()mul(689,457from()!+'select()mul(180,183)$ ~when()$when()<when()*mul(12,971)/select()mul(400,368)why()%do()&< +select()mul(976,889)select()mulwhat()(from()[->]~do()>{&{@&who()mul(126,680);-^')+mul(268,566)({ select()[select()what()who()what()select()mul(656,119)$mul(221,435)>how()[how()**,mul(17,637):from()from()+where()mul(834,156)}]from()[[select()how()mul(373,272)]from()@where()~(mul(10,456)/&how()from()mul(376,562)how(656,371)when()/+[how()@ do() &~{when()[mul:mul(851,474)+}do()@'<>!mul(71,636)+$how()#mul~)why()${mul(423,604)$where()##select()@%!mul(174,630) (where()(*mul(891,319)mul(712,140)((what(802,355)who()~;(]why()mul(892,613)<where()*+[@how()>where()mul(867,72)what()who() ?;-{,who()}mul(6,210#mul(435,420)don't()^:what()?who()when(909,225)[@who()mul(613,816)~mul(567,155)+[;select()~])!@{mul(584,474)@]/mul(855,798){#mul(833,981)@,(%&-,)?(mul(374^<from()!why()/from()mul(423,608)?+'{!mul(805,83)mul(797,555)*,from()mul(478,15)![!#/]'mul(320,806)]&]mul(43,38)#/}<#{)>mulselect()when()~/]from();?%{mul(459,389)why()~>from()'select():^#why()mul)who()$+where(168,518)--mul(937,21) mul(942,10)>!!mul(437,636)mul(509,95)mul(522,855)mul(109,507)why()%!({mul(442,773)where()where(900,115) #{ ^ when()mul(350,708:don't(),#'~,[mul(119,683)]#]&;$how()!mul(634,722)> +(?%mul(410,254)~*-^who()}*:^mul(219,824)^[@[~mul(475,606):mul(12,946)why(930,803)} mul(558,666)}?when()mul(992,775)/;<:what()$?what()mul(176,378)-{)#how()@]!{]mul(159,502)$why()how()},mul[}*&$)mul(100,648)'; mul(477,121) ],/do()mul(340,143)$(,}]{mul(477,481)/where()!where(874,723)!:[;?mul(694,893)/who(694,677)@who()?~mul(944,553)&&select();from(907,219)]mul(134,98)mul(475,226)%&~?>when()#where()(mul>/ mul(430,522)(mul(4,686)!&^(^why(){-what()&mul(956,959)^-[why())?mul(171,380)~) ?[mul(628,469))?*&}~mul(498,282)mul(104,486);((when()what()]]!select()&mul(264,534;#mul(208,64)how()mul(534,749)~<!mul(121,628)how()mul(743,224)select(704,368)'<?<]from()mul(921,475)select();~;[mul(954,506$+select()<select()@@/mul(629,294)mul(711,684)mul(888,484)from()}?mul(263,259)how()[^#{#mul(256,447)-why()(&/why(){#don't(){,@; &from()mul(806,780)mul(704,467@don't()mul(911,196)})from()mul(792,947>,;why()~select()!do()mul(279,93)]what()mul(182,162)mul(985,595)[[}what()!,&@/+mul(312,743)?@)<#what(205,819)/%:mul(828,4)$)*&$/mul(925,463)<how()?(? %mul(371,600);])!+!!~+from()do()[%~-+!%how()^mul(939,641)!>mul(101,11)mul}{>]-[don't()^?))+($ mul(797,638)select()'select() $when()~mul(312,896)^>mul(767#mul(737,79)who(937,752)?<(!mul(775,969))what()mul(995,800)!,?/select()(!^mul(825,47) (?->]%!#mul(345,412)+mulwhy()(&why()!when(417,78)}who()from()mul(477,312)(@}!select();<*mul(759,363)
*;++){#<mul(49,745)when()[what()mul(502,602)*?]from()from()!)%mul(870,408)!:mul(438,953)mul(477,794){mul(725,610)~}mul(149}what()~>what()^mul(591,595)what()when();(%$mul(35,204)where()) $mul(623,430)$!what())?mul(986,195)from()mul(333,771)where():^mul(366,275)who()why()' 'why()/{mul(886,569){what()what(459,994)$/{&mul(812,296)when()from()(:']/mul(938,122~what();?!where()~when()where()how(485,785)'mul(662,423)!+]/mul(931,464){,(^]mul?, mul(80,65)-<~^how())mul(537,517))who()?;}{mul(309,415))<%&;do()why();select()<%^why()mulwhat()$mul(97,261)]mul(976,251)<mul(929,486){@ select()%[mul(79,951)^{>/;<how()-how()mul(156,577);how()^!?}where()+how()@mul(608,799){'@^from())!/mul(103,54)!?from()mul[$/:&#?+$mul(577,38):mul(100,110)how()-$?/!%mul(373,344)@how()what())mul(476,880) mul(521,941))@mul(636,681)#?mul(911,48)%when(){select()&[mul(925,246)why()[mul(385,738)@<#/<<'why()/mul(747,613*%(why(600,668)when()#]$'}mul(991,663)<mul(380,823))$)<mul(790,442):where()@mul(485,925)select()/[!where()mul(760,526)why()do()mulhow(905,171))'when()<+mul(687,303));]}$];{how()%mul(885,373)$mul(538,642)/-&who()mul(904,758)mul(72,737)mul(957,888)how()!&why()!mul(125,773)[!#&%mul(107,113)mul(816,499)@mul(312,957)?>what()@:/<mul(35,722)~:&+][who()how()mul(420,105)from()[{]$:[>mul(236,347)&{}how()mul(115,717)^select():where()where()#$+%+mul(995,8)mul(281,511) >where()@mul(218,447);[[+don't()mul(856,826),-%mul(791,178)%*who();;@>&mul(355,579){>;from()>-]don't()!from()where(){'@*>&)mul(426,689)}mul(19,952),[$[@]why();from(807,651)?don't(),:;>mul(331,69):&how(888,904)mul(181,101){ :(*}: mul(628,267)>~@mul(521,898)&where()how()(~ )what()what()-mul(476,329)<)),mul(362,495)$* );;mul(245,39)why()select()/how()-,(}@mul(185,370)when())&<mul(622,439)mul(943,965)*~:mul(965,299)mul(29,612)@[where()how()mul(43,652)how()+$^+@ select()'how()mul(752,988)@who()when()>^*}mul(401,151)?+what()select();when()why()>:<mul(745,699)@$}where()~mul(77,216)when()(}what() %<mul(916,810)%$[{how()(~;why()mul(647,373)where()$where()+,[when()from()&mul(356,323)where()!,select()%where()'+mul(659,65):where(){:how()mul(163,188)mul(653,216),where()-**!*&from()mul(187,460)mul(347,271)mul(828,838)mul(70,426){from()mul(203,314): [where())*-^mul(276,626)mul(450,217)select()~ @&where(291,356)mul(201,755)@'~%!> ^}]mul(119,516):(mul(738,634)mul(830,590)where()?do()^&@}(&/>why()*mul(982,557)?/when()~?~<>mul(522,576)select()where()<&{mul(828,380)how()what()where(795,225)'mul(629,665)&mul(816,674)};#*[# {when()mul(833,343)how()how()why()what()mul(902,29) select())%<>(,!mul(698,182)^what()-,,}where()don't()from()from()/</&<]+mul(420,273)from()select()how()}where()mul(786,927)why()mul(945,741)[mul(395,39)!,do()from()mul(345,451),mul(575,284):^+mul(210,669)@]&when()when()#mul(347,353) how()
+98
View File
@@ -0,0 +1,98 @@
using System.Text.RegularExpressions;
namespace AOC.Tests.Y2024;
[TestFixture]
[Parallelizable(ParallelScope.All)]
public class Day03
{
[SetUp]
public void Setup()
{
realData = File.ReadAllLines(Path.Combine(TestContext.CurrentContext.TestDirectory, "Y2024", "Data",
$"{GetThisClassName()}.dat"));
}
protected string GetThisClassName() { return GetType().Name; }
private string[] realData;
[TestCase("xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))", 161)]
[TestCase(null, 168539636)] // The actual answer
public void Part1(string? input, int? expected)
{
string[] lines = input != null ? input.Split("\n") : realData;
int result = 0;
foreach (string line in lines)
{
MatchCollection instructions = Regex.Matches(line, @"mul\((\d{1,3}),(\d{1,3})\)");
foreach (Match match in instructions)
{
if (match.Success)
{
int firstNumber = int.Parse(match.Groups[1].Value);
int secondNumber = int.Parse(match.Groups[2].Value);
result += firstNumber * secondNumber;
}
}
}
if (expected != null)
{
Assert.That(result, Is.EqualTo(expected.Value));
}
Console.WriteLine($"Part 1: {result}");
}
[TestCase("xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))", 48)]
[TestCase(null, 97529391)] // The actual answer
public void Part2(string? input, int? expected)
{
string[] lines = input != null ? input.Split("\n") : realData;
int result = 0;
bool enableMuls = true;
foreach (string line in lines)
{
MatchCollection instructions = Regex.Matches(line,
@"(?<do>do\(\))|(?<dont>don't\(\))|mul\((?<num1>\d{1,3}),(?<num2>\d{1,3})\)");
foreach (Match match in instructions)
{
if (match.Success)
{
if (match.Groups["do"].Success)
{
enableMuls = true;
}
else if (match.Groups["dont"].Success)
{
enableMuls = false;
}
else if (match.Groups["num1"].Success && match.Groups["num2"].Success)
{
if (enableMuls)
{
int firstNumber = int.Parse(match.Groups["num1"].Value);
int secondNumber = int.Parse(match.Groups["num2"].Value);
result += firstNumber * secondNumber;
}
}
}
}
}
if (expected != null)
{
Assert.That(result, Is.EqualTo(expected.Value));
}
Console.WriteLine($"Part 2: {result}");
}
}
@@ -0,0 +1,35 @@
--- Day 3: Mull It Over ---
"Our computers are having issues, so I have no idea if we have any Chief Historians in stock! You're welcome to check the warehouse, though," says the mildly flustered shopkeeper at the North Pole Toboggan Rental Shop. The Historians head out to take a look.
The shopkeeper turns to you. "Any chance you can see why our computers are having issues again?"
The computer appears to be trying to run a program, but its memory (your puzzle input) is corrupted. All of the instructions have been jumbled up!
It seems like the goal of the program is just to multiply some numbers. It does that with instructions like mul(X,Y), where X and Y are each 1-3 digit numbers. For instance, mul(44,46) multiplies 44 by 46 to get a result of 2024. Similarly, mul(123,4) would multiply 123 by 4.
However, because the program's memory has been corrupted, there are also many invalid characters that should be ignored, even if they look like part of a mul instruction. Sequences like mul(4*, mul(6,9!, ?(12,34), or mul ( 2 , 4 ) do nothing.
For example, consider the following section of corrupted memory:
xmul(2,4)%&mul[3,7]!@^do_not_mul(5,5)+mul(32,64]then(mul(11,8)mul(8,5))
Only the four highlighted sections are real mul instructions. Adding up the result of each instruction produces 161 (2*4 + 5*5 + 11*8 + 8*5).
Scan the corrupted memory for uncorrupted mul instructions. What do you get if you add up all of the results of the multiplications?
--- Part Two ---
As you scan through the corrupted memory, you notice that some of the conditional statements are also still intact. If you handle some of the uncorrupted conditional statements in the program, you might be able to get an even more accurate result.
There are two new instructions you'll need to handle:
The do() instruction enables future mul instructions.
The don't() instruction disables future mul instructions.
Only the most recent do() or don't() instruction applies. At the beginning of the program, mul instructions are enabled.
For example:
xmul(2,4)&mul[3,7]!^don't()_mul(5,5)+mul(32,64](mul(11,8)undo()?mul(8,5))
This corrupted memory is similar to the example from before, but this time the mul(5,5) and mul(11,8) instructions are disabled because there is a don't() instruction before them. The other mul instructions function normally, including the one at the end that gets re-enabled by a do() instruction.
This time, the sum of the results is 48 (2*4 + 8*5).
Handle the new instructions; what do you get if you add up all of the results of just the enabled multiplications?