aboutsummaryrefslogtreecommitdiffstats
path: root/src/15/part2
blob: 3be53a910edb9960f618013ec49e8023459a2c98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- Part Two ---

Impressed, the Elves issue you a challenge: determine the 30000000th number spoken. For example,
given the same starting numbers as above:


 - Given 0,3,6, the 30000000th number spoken is 175594.
 - Given 1,3,2, the 30000000th number spoken is 2578.
 - Given 2,1,3, the 30000000th number spoken is 3544142.
 - Given 1,2,3, the 30000000th number spoken is 261214.
 - Given 2,3,1, the 30000000th number spoken is 6895259.
 - Given 3,2,1, the 30000000th number spoken is 18.
 - Given 3,1,2, the 30000000th number spoken is 362.


Given your starting numbers, what will be the 30000000th number spoken?