USACO 2022 US Open Contest, Bronze Problem 3. Alchemy
USACO 2022 US Open Contest, Bronze Problem 3. Alchemy Always keen to learn new hobbies, Bessie the cow is learning how to transform metals. She has?aiai?(0≤ai≤1040≤ai≤104) units of metal?ii?for?1≤i...