Rectangular Congruence
1734E2100· master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
20 0
Output
0 10 0
Sample 2of 3
Input
31 1 1
Output
1 2 21 1 01 0 1
Sample 3of 3
Input
51 4 1 2 4
Output
1 0 1 3 41 4 3 1 02 4 1 0 21 2 2 2 22 2 0 1 4
58%
1734E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)