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

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