This commit is contained in:
setop 2022-12-01 22:45:38 +01:00
commit 8554b324d4
1 changed files with 4 additions and 0 deletions

4
d01/part1.awk Normal file
View File

@ -0,0 +1,4 @@
# awk -f part1.awk < input | sort -n | tail -n 1
# awk -f part1.awk < input | sort -n | tail -n 3 | sum0
NF == 0 { print a; a = 0 }
{ a+=$1 }