Puzzles and logic › Processes, invariants and strategy › Board operations and invariants
Minimum operations to clear 2021 piles
University · ●●●○○ 50 pts
There are 2021 piles of stones, with the number of stones in each pile being respectively. In one operation you select any number of piles and remove the same number of stones from each selected pile. What is the minimum number of operations required to remove all the stones?