aboutsummaryrefslogtreecommitdiff
path: root/2024/05/puzzle-1.awk
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-12-05 09:48:38 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-12-05 09:48:38 +0100
commitef2b2fc34efc99b2f043de7b5ca3f07029f62467 (patch)
tree90c54cb36a11698ebdc668308c55f0a33ac4ec6c /2024/05/puzzle-1.awk
parent73f7b696264d9db21a6e7c03b89eb2b1135af83b (diff)
Remove files
Diffstat (limited to '2024/05/puzzle-1.awk')
-rwxr-xr-x2024/05/puzzle-1.awk18
1 files changed, 0 insertions, 18 deletions
diff --git a/2024/05/puzzle-1.awk b/2024/05/puzzle-1.awk
deleted file mode 100755
index 59616c9..0000000
--- a/2024/05/puzzle-1.awk
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/gawk -f
-
-BEGIN { FS = "[|,]" }
-
-/\|/ { rules[$1][$2] = 1 }
-/,/ {
- delete seen
- for (i = 1; i <= NF; i++) {
- for (j in seen) {
- if (j in rules[$i])
- next
- }
- seen[$i] = 1
- }
- mid += $(i / 2)
-}
-
-END { print mid } \ No newline at end of file