aboutsummaryrefslogtreecommitdiff
path: root/2021/10/puzzles.sh
blob: 4222f7afe72f0e2e80be182ec2ed41faa3331521 (plain) (blame)
1
2
3
4
#!/usr/bin/env sh

sed -f puzzle-1.sed input | paste -sd+ | bc
sed -f puzzle-2.sed input | bc | sort -n | sed '27!d'