Equalize the Remainders
999D1900· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
6 33 2 0 6 10 12
Output
33 2 0 7 10 14
Sample 2of 2
Input
4 20 1 2 3
Output
00 1 2 3
58%
999D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
6 33 2 0 6 10 12
33 2 0 7 10 14
4 20 1 2 3
00 1 2 3