From a8c4e3f737ccd756b86631be7a42ef40b1b2df33 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 12 Dec 2023 10:12:20 +0100 Subject: [PATCH] init d11p1 --- Day11/Part1.js | 8 +++ Day11/input.txt | 140 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 148 insertions(+) create mode 100644 Day11/Part1.js create mode 100644 Day11/input.txt diff --git a/Day11/Part1.js b/Day11/Part1.js new file mode 100644 index 0000000..3a620a8 --- /dev/null +++ b/Day11/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/Day11/input.txt b/Day11/input.txt new file mode 100644 index 0000000..8fbd6cf --- /dev/null +++ b/Day11/input.txt @@ -0,0 +1,140 @@ +..#............................#....................................................................................#..........#........#... +..........#.........................................#....................................................................................... +...................#..........................................................................#............................................. +.....................................................................................#.............................................#........ +.......#.......#.............#..........#......#...................#.....#.................................................................. +................................................................................#..................#..............#......................... +....................................#....................................................................................................... +...........#...................................................................................#......................................#..... +.......................................................................................................................#.........#.......... +.....................#.................................................#...................#.................#..............#............... +....#...........................................#...............#........................................................................... +.........................#.......................................................................#.......................................... +...................................#......................#.......................................................#.......................#. +..................#...........................................................#.......................#.................#...........#....... +..........#........................................................#..........................................#............................. +.............................................#.........#.....#.............................................................................. +.......................#.....................................................................#..............................#..........#.... +.............................#.......................................................#...........................#.......................... +..#...........#.......................#.....................................#............................................................... +...........................................................#.............................................#.................................. +......#..........................................................#......#........................................................#.......... +................................#.........#...........#....................................#........#...................#..................# +...........................#..................................................#..............................#.............................. +..............................................#.................................................#........................................... +.#.................................................................................................................#........................ +.......................................................................#.................................................................... +...............#.............................................................................................................#..........#... +.................................#.............................#............................................#............................... +.....#.................#...................#................................................................................................ +....................................................#...................................................#............#...................... +...........#.....#...................................................................#............................................#......... +..............................................#...........................................................................#................. +...#.........................#.....................................................................#........................................ +.........................................................#...................................#........................................#..... +.........#....................................................#........#................#.....................#............................. +........................#..........................................................................................#........................ +..............#...................................#............................#.............................................#.....#........ +.................................#................................................................#......................................... +..................#........................#...............#................................#.............#.............................#... +..........#........................................................#............................................................#........... +..#.....................................................................................#.............................#..................... +..........................#..........#..................................#......................................#...........#................ +................................................................#........................................................................... +................#................................#..........................#............................................................... +...........................................#..................................................#.....#.......#............................... +..........#............................................#.....................................................................#.............. +.......................#....................................#...........................................................#..............#.... +.....#.........................#........#..............................................#.................#........................#......... +.................#....................................................#............................................#........................ +....................................#...............#................................................#...................................... +.........................#........................................#................#.......#...................#............................ +....................................................................................................................................#....... +...........#...................................#...........................#......................#.........................#..............# +..................................#......#.................................................................................................. +......#....................#.........................#..................................................#................................... +......................#...................................#......#.....#.................................................#.................. +..............#..............................................................................#.................#.....................#...... +............................................................................................................................................ +#.............................#................#....................................................................#....................#.. +............................................................................................................................................ +........#...........................................#....................................................................................... +...................................................................#..........#..................#.......................................... +.....................#............#........#.............................................#............#................#.................... +................#............................................................................................................#.............. +...............................................................................................................#...................#........ +........................#......#..........................#.....#......#................................................................#... +................................................#..........................................#.............#.................................. +......................................#..............................................................................#...................... +..#.................................................................#.........#............................................................. +..........#.....#...............................................................................................#...........#............... +.................................#....................................................................#..............................#...... +.....................................................#........................................#........................#.................... +..........................................#..................#............#................................................................. +......................#...............................................................#..................#.........#............#........... +......#........................................................................#............................................................ +...................................#...................................#..................................................#................. +...................................................#.........................................#.................#............................ +...........................#...................................#.....................................................................#...... +........................................#................................................................................................... +................#......................................#........................#.........#.....#........................................... +...........#......................#.....................................................................#................................... +....#....................#...................#...................#................................................#...........#...........#. +............................................................................................................................................ +............................................................................................................................................ +.....................................#....................................#................................................................. +.......................#..................#........#............................#................#.............#............................ +...............#...............................................#......................#..............................................#...... +............................................................................................................................................ +.................................#...........#.....................#....................................................#................... +............................................................................................................................................ +..#........#..........#...............#..................................................................#..........#......................# +............................................................#............................#.................................................. +.................................................................#..........#.................................#.................#........... +.............................#......................#....................................................................................... +....#..................................................................................................................................#.... +...................#...............#..................................................#....................#................................ +.........................................................#......................................#...................#..............#........ +.....................................................................#...................................................#.................. +........................#...................................................................#..................#............................ +...#.....#...............................#....................#............................................................................. +................#...............#........................................................................................................... +.....................#........................................................#.....................................................#....... +..............................................#.......#................#...............................................#...................# +.........................................................................................#...............#...................#.............. +.#...........................#.......#...................................................................................................... +.............................................................................................................#........................#..... +.................................#.......................................................................................................... +...........#........................................................................................#.............................#......... +................#...............................................#............................#...................#.......................... +...#............................................................................#........................................................... +....................................................#.......#.......#......#...........................................................#.... +.........................#.................................................................................................................. +....................#...............#.........................................................................................#............. +.........................................................#....................#......................#...................................... +....#........................#...............#........................#...............#..................................................... +..........#......#....................................................................................................................#..... +..............................................................................................#...................#......................... +.......................................................#...................................................#.................#.............. +..........................#....................#............................................................................................ +........................................#......................#.........#...............#.......#......................#.........#.....#... +...............................#....................................#....................................................................... +........#...........#.............................#......................................................................................... +...#...........#...................................................................#..................#............#........................ +...........................#..............................#...................................#............................................. +...................................#.............................#..........................................#............................... +..............................................#........................#........#..........................................#................ +.......................................................................................#.............................#..............#....... +.........................................#.................................................................................................. +.....#............#......................................#.....#............................#............................................... +............................#............................................................................................................... +.......................#.........#........................................#..............................#...............................#.. +..#...........#.......................................#.........................#........................................................... +.......................................#.........................#.......................................................................... +............................................................#............................................................................... +.......#......................#........................................#................................................#..............#.... +..............................................................................................................#............................. +...............................................#.....................................................#...................................... +......................#..................................................................#......#.................................#.......#. +..#.......#................#......#..................................#.......#.....................................#........................ +................#...............................................#..................#....................#..................#................