USACO 2020 US Open Contest, Gold Problem 1. Haircut
USACO 2020 US Open Contest, Gold Problem 1. Haircut Tired of his stubborn cowlick, Farmer John decides to get a haircut. He has NN (1≤N≤1051≤N≤105) strands of hair arranged in a line, and strand ii...