训练计划:做 Codeforces Round (Div. 2)、Codeforces Round (Div. 3) 和 Educational Codeforces Round 通过人数少于 1000 人的题目。
Codeforces Round #490 (Div. 3)
D. Equalize the Remainders
给定两个整数 n,m n , m 和 n n 个整数 组成的数列 A A ,每次可以将数列 中的任意一个整数加 1 1 ,至少需要多少次操作才能使得在所有 中, 0,