aboutsummaryrefslogtreecommitdiff
path: root/2021/01/puzzles.sh
blob: 9cf8043b7a5a681e334541a517596693e4b6ffbf (plain) (blame)
1
2
3
#!/usr/bin/env sh

paste -s input | awk '{ for (i = 1; i < NF; i++) c += $i < $(i + DELTA) } END { print c }'