aboutsummaryrefslogtreecommitdiff
path: root/2015/14/puzzle-2.bc
diff options
context:
space:
mode:
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++) {