aboutsummaryrefslogtreecommitdiff
path: root/2015/14/puzzle-2.bc
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-30 12:23:17 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-30 12:23:17 +0100
commitf3e3e3e354b87f4ce27bd74bf14cec05d06974b6 (patch)
tree112352e9c3ba5d5d924036def2b5f853d3f8dc28 /2015/14/puzzle-2.bc
parent4742dd73046c53cff7fe54deee58358c3b193206 (diff)
Lots of cleanup and stuff
Diffstat (limited to '2015/14/puzzle-2.bc')
-rw-r--r--2015/14/puzzle-2.bc6
1 files changed, 2 insertions, 4 deletions
diff --git a/2015/14/puzzle-2.bc b/2015/14/puzzle-2.bc
index 4a41277..b471510 100644
--- a/2015/14/puzzle-2.bc
+++ b/2015/14/puzzle-2.bc
@@ -1,8 +1,7 @@
scale = 0
/* Return the largest element from array `a` of length `l` */
-define max(a[], l)
-{
+define max(a[], l) {
auto m, i
for (i = 0; i < l; i++) {
if (a[i] > m)
@@ -11,8 +10,7 @@ define max(a[], l)
return m
}
-define calc(speed[], time[], rest[], n)
-{
+define calc(speed[], time[], rest[], n) {
auto i, j, k, p[], d[]
for (i = 0; i < 2503; i++) {