USACO 2022 US Open Contest, Platinum Problem 2. Hoof and Brain
USACO 2022 US Open Contest, Platinum Problem 2. Hoof and Brain Given a directed graph with?NN?vertices and?MM?edges (2≤N≤1052≤N≤105,?1≤M≤2?1051≤M≤2?105), Farmer John's cows like to play the followi...