Today, the elves are out caching again. Unfortunately they have become lost! They all started in the same place, and are going around a loop of caches. The start points for each elf are numbered s1, s2 etc. In the actual input, there are 10 elves that have got lost. If all the elves go to the next cache in their loop at exactly the same time, how long will it take for them all to find each other? Here is your test input:
sgt -> bsa lrn -> ugu nbs -> sgt ugu -> s2 qml -> s1 hyj -> vew mop -> knv s2 -> wrk ghz -> qml pzl -> jut jut -> ghz knv -> uzc vew -> nbs bsa -> lrn uzc -> pzl wrk -> hyj s1 -> mop
72
Alert: You are about to download a file that contains details needed to find this geocache. As the geocache owner, I ensure that this file is safe to download. It has not been checked by Geocaching HQ or by the reviewer for possible malicious content. Download this file at your own risk.
Download input data:
Input Data File