USACO 2022 February Contest, Bronze Problem 2. Photoshoot 2
USACO 2022 February Contest, Bronze Problem 2. Photoshoot 2 In what seems to be a familiar occurrence, Farmer John is lining up his NN cows (1≤N≤1051≤N≤105), conveniently numbered 1…N1…N, for a pho...