cf/mirror

Equalize the Remainders

CF
999D1900· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
6 3
3 2 0 6 10 12
Output
3
3 2 0 7 10 14
Sample 2of 2
Input
4 2
0 1 2 3
Output
0
0 1 2 3
999D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)