aboutsummaryrefslogtreecommitdiff
path: root/2022/01/puzzle-1.awk
blob: 406a66305625c06c8ebcdd40d5c70d391c5879d1 (plain) (blame)
1
2
3
4
5
#!/usr/bin/awk -f

/[0-9]+/ { acc += $1; next }
         { if (acc > max) max = acc; acc = 0 }
END      { print max }