USACO 2021 December Contest, Platinum Problem 2. Paired Up
USACO 2021 December Contest, Platinum Problem 2. Paired Up There are a total of NN (1≤N≤50001≤N≤5000) cows on the number line, each of which is a Holstein or a Guernsey. The breed of the ii-th cow ...