aboutsummaryrefslogtreecommitdiff
path: root/2024/01/puzzle-2.awk
diff options
context:
space:
mode:
Diffstat (limited to '2024/01/puzzle-2.awk')
-rwxr-xr-x2024/01/puzzle-2.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/2024/01/puzzle-2.awk b/2024/01/puzzle-2.awk
index 8400a16..75ab83a 100755
--- a/2024/01/puzzle-2.awk
+++ b/2024/01/puzzle-2.awk
@@ -1,7 +1,7 @@
#!/usr/bin/awk -f
{
- xs[++i] = $1
+ xs[NR] = $1
ys[$2]++
}