cf/mirror

Rectangular Congruence

CF
1734E2100· master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
0 0
Output
0 1
0 0
Sample 2of 3
Input
3
1 1 1
Output
1 2 2
1 1 0
1 0 1
Sample 3of 3
Input
5
1 4 1 2 4
Output
1 0 1 3 4
1 4 3 1 0
2 4 1 0 2
1 2 2 2 2
2 2 0 1 4
1734E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)