pull/1/head
Alpha Chen 2 years ago
parent b61b268c6e
commit 049eedabf4
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

1
2022/.gitignore vendored

@ -0,0 +1 @@
day_*.txt

@ -0,0 +1,4 @@
Split {𝕩˜(-˜+`׬)0=¨𝕩}
ParseInt 10×+˜´-'0'
in ParseInt¨ ¨Split •Flines "../day_01.txt"
•Out¨ ,+´3 {𝕎𝕩}¨ <+´¨in

@ -0,0 +1,2 @@
# p ARGF.read.split("\n\n").map { _1.each_line.map(&:to_i).sum }.max
p ARGF.read.split("\n\n").map { _1.each_line.map(&:to_i).sum }.sort[-3..-1].sum
Loading…
Cancel
Save