USACO 2019 February Contest Silver Problem 1 Sleepy Cow Herding
Farmer John's NN cows are always wandering off to the far reaches of the farm! He needs your help herding them back together. The main field in the farm is long and skinny -- we can think of it as ...