From bb3d362abad969f58385f65a1379eb1003fadfff Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 8 Dec 2023 09:37:26 +0100 Subject: [PATCH] init day 6 --- Day6/Part1.js | 8 ++++++++ Day6/input.txt | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 Day6/Part1.js create mode 100644 Day6/input.txt diff --git a/Day6/Part1.js b/Day6/Part1.js new file mode 100644 index 0000000..3a620a8 --- /dev/null +++ b/Day6/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/Day6/input.txt b/Day6/input.txt new file mode 100644 index 0000000..27b64c4 --- /dev/null +++ b/Day6/input.txt @@ -0,0 +1,2 @@ +Time: 58 81 96 76 +Distance: 434 1041 2219 1218