+/AoC
advent of code
git clone https://git.julia.blue/+/AoC
38c0746
master
1skip = 344 2pos = 0 3buff = [] 4 5for i in range (2018 ): 6buff .insert (pos ,i ) 7pos = (skip + pos )% len (buff )+ 1 8 9"Part 1:" ,buff [buff .index (2017 )+ 1 ] 10 11pos = 0 12current = None 13for i in range (50000000 ): 14if pos == 1 : 15current = i 16pos = (skip + pos )% (i + 1 )+ 1 17 18"Part 2:" ,current