aboutsummaryrefslogtreecommitdiff
path: root/2021/10/puzzle-1.sed
blob: e2e1204dbf125e27e7719e7a0deef3e47b1865c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
:top
s/()//
s/\[\]//
s/{}//
s/<>//
t top

/[])}>]/!d

s/^[(\[{<]*).*/3/
s/^[(\[{<]*\].*/57/
s/^[(\[{<]*}.*/1197/
s/^[(\[{<]*>.*/25137/