aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2017-12-19 18:07:36 +0000
committerNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2017-12-19 18:07:36 +0000
commit981f904c6335b5483fedf1f03724ea2d5412ce75 (patch)
treeceaa3788134d1ab886b9d81fbdce300ccc19cf3f
parentdbb4a9a351e95e4af223b7324b0795124c2b8cd9 (diff)
Runtime unacceptably longday16
-rwxr-xr-xday16/part227
1 files changed, 27 insertions, 0 deletions
diff --git a/day16/part2 b/day16/part2
new file mode 100755
index 0000000..c2d8882
--- /dev/null
+++ b/day16/part2
@@ -0,0 +1,27 @@
+#!/usr/bin/env ruby
+
+input = gets.chomp.split(',')
+
+line = %w( a b c d e f g h i j k l m n o p )
+
+#namdgkbhifpceloj
+
+(1_000_000_000).times do
+ line =
+ line[13] +
+ line[0] +
+ line[12] +
+ line[3] +
+ line[6] +
+ line[10] +
+ line[1] +
+ line[7] +
+ line[8] +
+ line[5] +
+ line[15] +
+ line[2] +
+ line[4] +
+ line[11] +
+ line[14] +
+ line[9]
+end