Created
December 8, 2023 00:59
-
-
Save Stevie-O/84e1ec2f1daa74d16fb019e0715212ac to your computer and use it in GitHub Desktop.
AOC 2023 Day 6 Intcode solver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1101,0,0,3,109,842,21101,822,0,1,21101,832,0,2,21101,21,0,0,1105,1,215,1201,1,0,820,21101,832,0,1,21101,842,0,2,21101,40,0,0,1105,1,215,2008,820,1,45,1106,0,678,21001,822,0,1,21001,832,0,2,21101,62,0,0,1105,1,95,202,1,821,821,101,-1,820,820,101,1,48,48,101,1,52,52,1005,820,47,21001,821,0,1,21101,92,0,0,1105,1,536,104,10,99,109,11,21201,-9,1,-8,22202,-10,-10,-7,22102,-4,-9,-6,22201,-7,-6,1,1207,1,1,118,1105,0,685,21101,127,0,0,1105,1,344,21202,1,-1,-5,22201,-10,-5,1,21101,142,0,0,1105,1,407,21201,1,0,-4,1202,-4,-1,152,21201,-10,0,-3,22202,-4,-3,-2,2207,-2,-8,163,1106,0,172,21201,-4,1,-4,1105,1,146,21201,-3,0,-1,1202,-1,-1,182,21201,-10,0,-3,22202,-1,-3,-2,2207,-2,-8,193,1105,0,202,21201,-1,1,-1,1105,1,176,21202,-4,-1,-10,22201,-1,-10,-10,109,-11,2105,1,0,109,7,21101,0,0,-3,1201,-6,0,293,1101,229,0,304,21101,0,0,-4,21101,0,0,-2,203,-1,1208,-1,10,244,1105,0,269,1207,-1,48,251,1105,0,260,2107,57,-1,258,1106,0,305,1005,1,237,1206,-2,237,1105,1,283,2201,-3,-2,274,1106,0,237,1206,-2,335,1101,335,0,304,2007,293,-5,288,1106,0,671,1201,-4,0,0,101,1,293,293,22101,1,-3,-3,1105,1,229,1201,-4,0,326,22101,1,-2,-2,22101,-48,-1,-1,22102,10,-4,-4,22201,-4,-1,-4,2107,0,-4,330,1106,0,664,1105,1,237,21201,-3,0,-6,109,-7,2105,1,0,109,4,1207,-3,2,351,1105,0,402,21201,-3,0,1,21101,364,0,0,1105,1,407,21101,371,0,0,1105,1,407,21101,378,0,0,1105,1,344,21202,1,2,-1,21201,-1,1,-1,22202,-1,-1,-2,2207,-3,-2,400,1002,400,-1,400,21201,-1,0,-3,109,-4,2105,1,0,109,2,1207,-1,2,414,1106,0,423,21101,0,0,-1,1105,1,442,21201,-1,0,1,21101,1,0,2,21101,438,0,0,1105,1,447,21201,2,0,-1,109,-2,2105,1,0,109,6,22201,-4,-4,2,1206,-4,664,2207,-5,2,461,1106,0,478,21201,-5,0,1,21101,0,0,2,21101,1,0,3,1105,1,489,21201,-5,0,1,21101,489,0,0,1105,1,447,1205,3,496,22201,2,-4,2,21201,2,0,-2,22207,1,-4,-1,1205,-1,515,1202,-4,-1,513,21201,1,0,1,21201,1,0,-3,21201,-3,0,-5,21201,-2,0,-4,21201,-1,0,-3,109,-6,2105,1,0,109,2,1206,-1,559,21201,-1,0,1,21101,1,0,2,21101,556,0,0,1105,1,566,1105,1,561,104,48,109,-2,2105,1,0,109,5,21201,-4,0,1,2207,-4,-3,577,1105,0,622,21202,-3,10,2,21101,590,0,0,1105,1,566,21201,1,0,-4,21202,-3,-1,-1,21101,48,0,-2,2207,-4,-3,607,1105,0,620,21201,-2,1,-2,22201,-4,-1,-4,1105,1,602,204,-2,21201,-4,0,-4,109,-5,2105,1,0,0,0,0,1001,631,0,639,1001,0,0,632,101,1,631,647,1001,0,0,633,1001,647,1,647,4,633,1001,632,-1,632,1005,632,646,99,1101,692,0,631,1105,1,634,1101,719,0,631,1105,1,634,1101,741,0,631,1105,1,634,1101,793,0,631,1105,1,634,26,73,110,116,101,103,101,114,32,111,118,101,114,102,108,111,119,32,100,101,116,101,99,116,101,100,10,21,84,111,111,32,109,97,110,121,32,114,97,99,101,115,32,105,110,112,117,116,10,51,78,117,109,98,101,114,32,111,102,32,116,105,109,101,115,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,110,117,109,98,101,114,32,111,102,32,100,105,115,116,97,110,99,101,115,10,26,85,110,115,111,108,118,97,98,108,101,32,105,110,112,117,116,32,100,101,116,101,99,116,101,100,10,0,1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Accepts puzzle input in ASCII.
Outputs puzzle answer in ASCII.
As is, executes part 1.
For part 2, change the second value (index 1) from 0 to 1.