USACO 2021 February Contest, Gold Problem 1. Stone Game
USACO 2021 February Contest, Gold Problem 1. Stone Game Bessie and Elsie are playing a game with NN (1≤N≤1051≤N≤105) piles of stones, where the ii-th pile has aiai stones for each 1≤i≤N1≤i≤N (1≤ai≤...