USACO 2021 January Contest, Gold Problem 3. Dance Mooves
USACO 2021 January Contest, Gold Problem 3. Dance Mooves Farmer John’s cows are showing off their new dance mooves! At first, all?NN?cows (2≤N≤1052≤N≤105) stand in a line with cow?ii?in the?iith po...