USACO 2019 January Contest Bronze Problem 2 Sleepy Cow Sorting
Farmer John is attempting to sort his NN cows (1≤N≤1001≤N≤100), conveniently numbered 1…N1…N, before they head out to the pastures for breakfast. Currently, the cows are standing in a line in the o...