diff --git a/Day16/Part1.js b/Day16/Part1.js new file mode 100644 index 0000000..c5dc523 --- /dev/null +++ b/Day16/Part1.js @@ -0,0 +1,8 @@ +import { readFileSync } from "fs"; +const t0 = performance.now(); + +const input = readFileSync("input.txt").toString(); +console.log(input); + +const t1 = performance.now(); +console.log(`Runtime: ${t1 - t0}ms`); diff --git a/Day16/input.txt b/Day16/input.txt new file mode 100644 index 0000000..c818268 --- /dev/null +++ b/Day16/input.txt @@ -0,0 +1,110 @@ +\.\............/........|............/.-....................|............|.......-..............//....../../.. +......\.-/..|...............-...-\......../.............-.../.............../........-................../../.. +.........\..\......................................................../\.......\.............................-. +....|.........-..................|..../....-......................................|.../...............|.../... +.....|...|..-....|................/............./......./............../|.......|.....|.................../... +.........-............../.|.-...\..........................|..................//............-\......|......... +.........|...................||.........-.|/.......---...-...........\........\.-...\..../......|............. +.......|-................................................................./........../..../................... +......-......|......././...............................\.....\.........|...........|..\-............|\........ +|...\.............................-...\\-.................|................................-.........|........ +...\....|.|........................-.........................\..|............................-....|........... +\.........|..|./....................../..........-......|...-....................\....-../...\.-.....|/....... +......\./................|...................-....../..................................|.......-....-......... +......-.........................................|....\..................../-./-.......|........./............. +................|...|...\....\....-....//........./...../.....-..............|\.|..\.........\......./\....\.\ +.\...|.....|......./....-...........|.............-..\...-..-....................|.../.....-...........--..... +......................................-................../..............\.\\........../.../................\.. +.-..........|..|......................|....|.-|.....................-..../............|......./..../..\/.-.\.. +..\..\.............../-......-................-......................................\....../......|.......... +.........\.....\.......................................-../........./-....-.................\....../..../..... +......-..\..-.............|...................|....../.......\../........../.....-............................ +.............|../.\...\....|...............|.........../..|-....../........../..../|.|.\........|........\..|. +..\............|...../...................\......................./...-.......-..........................-..... +....|......................|......../.|.\.../......|...|..-.....................|................../..\....... +.....................................................-................/\..-....|..........................-.\. +................../...\..........\...........\............................................./.../.........|.|.. +.....-......................................./....-........|.-........................|.........\.....\....... +...............\/\..........|.|................................|.\......\......\............|...-............. +..................................\.......-.........|-........../...........\\..\.|../......|........\..|..... +..............-...........\.....\\./......................./...-...........-..........................././.... +...-..............-..........................\..........|...........-/........../.../...|..................... +...\..............-......./-...........|............./.......-./........-..-....|......./\.-.......\./........ +.........|......././..\.-......./............-....-..................|....-......../........-.........\....... +....|.........................../....................-..................-...\|............................|... +.-........-...........|..............................|.........................................\......-......- +............./......../..-....\...............................././.......|................................|... +.|\../......-./........./...............-./..............\../..............|....|........./................... +..................................................|............................-.............................. +.............-...................\.......|........|.............../......-....|......../.../.-...\|........... +.................../..............-|........................|.............\..\.........................././... +...../.........../..-.......|........../.......|........................./......|......./..........|.......... +../...-........../...........................-.|..\../..................\.....-...........|................... +.........\.......-.......-.\.|......|.......||......|.\....-...-.................-..........-..\.............. +................................\./.......\/............-................./.....\......../.................... +/...........-......|..|....../.....\.........|.....................................\...................|....-. +...........\.............../.......\......................................................................\..- +....../...................-..................|-\......................-..................\.................... +/............./...........|.....|............/.................................-....................-......\|. +...............\..|..............|............\../.../..........................\\................|......./... +....--/............|......|......-........-...../........./.........../-..\..|........-....................... +|.-....-.........................|../................\................../......\..../.\..|...../.../|......... +....................................../.........\........-....................../.-..-.\.....././.../.....\..\ +......\...../............./................-...........\.................../.....-../......-.................. +....../............../...........|......|..................................|...................|.............. +......-../.../.|.........././..........\.......\........./......|..............\.................-.........../ +...../...|........//...../.................\................../.\.............-............/.........../...... +..............-.....|................\................/.........|.....\.......\....................\.....\.... +..........|..........-.../..................\.-.......................................\..-.........|.......... +....|..................-.....|..................|...........-......./.....-......../...|........\....\-.|..... +.......................-......./......................./.-.-.........|.....|.................|................ +...|................/......-.....|....-..-.........-|....|..................../.../....-......\.......-......\ +............-.............................-...................../..............|.|.......-.................... +-....-..............|................./......../.\............./../............../..-...-...........|......... +.|............|..........-................./................|.....................|./....\......./.....\...... +..........|\.|...................-.............\......|..-..\.......\..........\........|......-.../........\. +\.......\....................\..............|................................|..............-.../............. +......../-....................|...............-........................\................\..............-...... +...|..-.............//.-.............../........-........../..|.............\|../....................-........ +..../.\.-.-|.....\.-|..../.....\..|.........../........................-.....................-..........|..... +...../-..........\.........-....................\.............................\............|-..\..........|... +...-...../....................../-......\...|.....-........................../.|.........|.......\..\.....\../ +...................\...../......................./...-.....\.-.........-...../.|...................|......./.. +../.....|..|..\.........|.../.................../..-............\../........\.....\.....................\..... +.........................../...\.|........\...||..........\......\.-....|.........\-..\....................... +../.........|............................/../-||..............|-........\............\....\.\................| +../....|....................|.....|-.......|.................../...\.-.\.............-.................-...... +....|..............................................................-|......................................... +..................\-.\/.........|../|....../|..\...-...\.........|/............./...\...\..................... +.\.........-../....|-......................./................/\..\........................................./.. +./......................-...............|...............|................-.......................\............ +................\..........././............................-....\/..........-.../../....|.........-....|...../ +.-..-..|\..\/........\./....|.......................\.........../.....|......./-.-..../..../.................. +\.....|........................../.|...../.-...............|.../\...|.........|.\|....../.-......|............ +.........-|............./..../.\.|//.......-....-...........\.........-..-.........\....\..........|.......... +....................|.......-../.....\-..........\................-..................\.-........|............. +.....|.\-........................./........................................../.......-.\....-......../........ +...................|..............\..|/................................|/..../........../..|.................| +.......\...|./......../..........-............-....|...........-/.\...-......./....\......./........\....../.. +...\............\..........\../................./....-......|..........................................\...... +............|......|......../.............\...|.....................\.\\...................................... +-.-.-......\.......|..........-.|.....|\....\/..............-/..........|............|......./.........-...... +......................../...|................./......\............../..............-/.......\.....\\.......... +...|.|.-..-./..................../................................-....\|........./...-..|........\......-.... +....\....-../.........|....|........-./..\../...|...../-.|.|....\................................./...|......- +..............\../..............|.|................\......./.............../.\......|.....|..\...../....../... +............|....\......|........|.......\.................................................../.-.............. +.|............|...\....................../............................................\.......|.-.-........... +.....-.\|......\.............|............|....-.........\....|.............................../....\....-.|... +............|./.........................\...|..............................\...|..|..............|...-........ +.-.....|..................|....-.............-..\..-...............-....-..................-.................. +..\......-.-./..................................-............\........./........-.-.............-............- +..../.\--...............//..................................||................\.................|......|...... +..|./...\......................|.........../........\.....-....-.................................../-....\.... +.........-........\..............................|.......|......../...........|....../......|..\.|..../....... +....../....-....|\............|.....|..\../||....................................\.....................-...... +.....\.....--...././......................-........\\............-...............\....-....|................./ +........./........../...-................/...........-............................................-........./. +.........-..-...|/..\.........................\............\..-........-.........-...............\......|./.-. +|......................-.....-..-.........../-..................|.....|.........\./........./...-/............ +..............-...........|-....-.../.............-........./...../.................../.......--.|....-..../..