USACO 2021 January Contest, Silver Problem 1. Dance Mooves
USACO 2021 January Contest, Silver Problem 1. 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 ...