index
:
~cnx/cp
this commit
main
My CP collection
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
aoc
/
2022
/
01
/
part-one.sh
blob: a0e00954862d508ba90f20509a9c041bb8452612 (
plain
) (
blame
)
1
2
#!/bin/sh
sed
's/$/+/'
|
{
echo
0
;
sed
's/^+$/p0/'
;
echo
p
;
}
|
dc
|
sort
-n
|
tail
-1