I believe the “Binary Search + BFS” at the header in the second implementation should be used to correct it.
[Solution: Moocast (USACO Gold 2016 December) | USACO Guide] (Solution - Moocast (USACO Gold 2016 December))
Fixed, thanks. (Though the preferred way of reporting such mistakes is to follow the instructions in the contact form.)