aboutsummaryrefslogtreecommitdiff
path: root/2022/01/second.b98
diff options
context:
space:
mode:
Diffstat (limited to '2022/01/second.b98')
-rw-r--r--2022/01/second.b988
1 files changed, 8 insertions, 0 deletions
diff --git a/2022/01/second.b98 b/2022/01/second.b98
new file mode 100644
index 0000000..42d901b
--- /dev/null
+++ b/2022/01/second.b98
@@ -0,0 +1,8 @@
+00p10p20p30p v
+current total in 0,0 top3 in 1,0 2,0 and 3,0
+>#;~:a-#v_$v@,a.++g03g02g01 ; >
+^+*a\-0'< : if not an empty line, add to total and read another number
+^ p00+g00_v >10g00g10p00pv >20g00g20p00pv >00g30pv
+^ vp01< >10g00gw> >20g00gw >30g00gw >00p
+ > ^ > ^ > ^
+