cf/mirror

Parliament of Berland

CF
644A1000· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 2 2
Output
0 3
1 2
Sample 2of 3
Input
8 4 3
Output
7 8 3
0 1 4
6 0 5
0 2 0
Sample 3of 3
Input
10 2 2
Output
-1
644A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)