summaryrefslogtreecommitdiff
path: root/2023/day3/test.ts
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-07-21 18:34:25 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-07-21 18:34:25 +0000
commit4e7ec7d5a5d4ca8d04b981830c078a2b3331eeab (patch)
treea1ff3e1fdcb965268823197d9a9422c1405e37d2 /2023/day3/test.ts
parent9988056b093b3b3f4269562da4c780d55cd4688a (diff)
downloadadventofcode-master.tar
adventofcode-master.tar.gz
adventofcode-master.tar.bz2
adventofcode-master.tar.lz
adventofcode-master.tar.xz
adventofcode-master.tar.zst
adventofcode-master.zip
2023: Add day3HEADmaster
Diffstat (limited to '')
-rw-r--r--2023/day3/test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/2023/day3/test.ts b/2023/day3/test.ts
new file mode 100644
index 0000000..3420b1d
--- /dev/null
+++ b/2023/day3/test.ts
@@ -0,0 +1,7 @@
+const nums = [657, 283, 728, 422, 446, 95, 963, 617, 201, 215, 435, 174, 232, 116, 730, 630, 755];
+let total = 1;
+
+for (const n of nums) {
+ total *= n;
+}
+console.log(total, Number.MAX_VALUE, Number.MAX_SAFE_INTEGER);