aboutsummaryrefslogtreecommitdiff
path: root/2023/01/puzzle-1.an
blob: d09f84585ec4019c99c4b9d1d23484dbb0f7e39e (plain) (blame)
1
2
3
4
5
6
#!/usr/local/bin/andy

tr -d a-z <input
| sed -E 's/(.).*(.)/\1\2/; s/^.$/&&/'
| paste -sd+
| bc