There was an error while loading. Please reload this page.
1 parent 0352c7a commit 052ca7dCopy full SHA for 052ca7d
2025/day05/p2-golf.sh
@@ -0,0 +1,3 @@
1
+grep -|sort -n|(while IFS=- read a b
2
+do((t+=a>c?b-a+1:c>b?0:b-c,b>c?c=b:0))done
3
+echo $t)
0 commit comments