aboutsummaryrefslogtreecommitdiff
path: root/2022/01/first.b98
diff options
context:
space:
mode:
authorJulien Dessaux2022-12-01 18:48:22 +0100
committerJulien Dessaux2022-12-01 18:48:22 +0100
commite669eefcee8343c8b1db621167f3b04e0579a52f (patch)
treead5374cd72b12232a0ea7a72766fd21ce56615f0 /2022/01/first.b98
parent2022-01 in zig (diff)
downloadadvent-of-code-e669eefcee8343c8b1db621167f3b04e0579a52f.tar.gz
advent-of-code-e669eefcee8343c8b1db621167f3b04e0579a52f.tar.bz2
advent-of-code-e669eefcee8343c8b1db621167f3b04e0579a52f.zip
2022-01 in befunge!
Diffstat (limited to '')
-rw-r--r--2022/01/first.b987
1 files changed, 7 insertions, 0 deletions
diff --git a/2022/01/first.b98 b/2022/01/first.b98
new file mode 100644
index 0000000..8cf9f88
--- /dev/null
+++ b/2022/01/first.b98
@@ -0,0 +1,7 @@
+00p10p;max in 0,0, current total in 1,0;v
+>#;~:a-#v_$v@,a.g00; parses a number >
+^+*a\-0'< : if not an empty line, add to total and read another number
+^ p01+g01_v
+^ vp00< >1v
+^ >v $wg00:g0<
+^p01< $<