aboutsummaryrefslogtreecommitdiff
path: root/day16/part2
blob: c2d88824604db481dfb20efe18284e3f84ca3f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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