Advent of code 2017/12
Ajax Direct

Answer

Part 1 :
Part 2 :