2022 Day 1

This commit is contained in:
Joshua Seigler 2022-12-01 06:02:08 +00:00
parent fc6c4c750f
commit 7c035a8b0b
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1 @@
language = "nodejs"
run = "node day04"
language = 'nodejs';

1
2022/day01.js Normal file
View file

@ -0,0 +1 @@
[a,b,c]=$("pre").innerText.trim().split`\n\n`.map(x=>x.split`\n`.reduce((a,c)=>a+(+c),0)).sort((a,b)=>b-a);[a,a+b+c]