diff options
Diffstat (limited to 'day16/part2')
-rwxr-xr-x | day16/part2 | 27 |
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 |