aboutsummaryrefslogtreecommitdiff
path: root/2015/02/puzzle-1.awk
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/02/puzzle-1.awk
parent4742dd73046c53cff7fe54deee58358c3b193206 (diff)
Lots of cleanup and stuff
Diffstat (limited to '2015/02/puzzle-1.awk')
-rwxr-xr-x2015/02/puzzle-1.awk6
1 files changed, 3 insertions, 3 deletions
diff --git a/2015/02/puzzle-1.awk b/2015/02/puzzle-1.awk
index e316ba2..5c05d31 100755
--- a/2015/02/puzzle-1.awk
+++ b/2015/02/puzzle-1.awk
@@ -1,7 +1,6 @@
-#!/usr/bin/env -S awk -f
+#!/usr/bin/awk -f
-function min(a, b, c)
-{
+function min(a, b, c) {
if (a <= b && a <= c)
return a
if (b <= a && b <= c)
@@ -11,6 +10,7 @@ function min(a, b, c)
BEGIN { FS = "x" }
{
+ # START PART 1
x = $1 * $2
y = $2 * $3
z = $1 * $3