cf/mirror

Construct Matrix

CF
1917E2500· grandmaster1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
5
4 0
6 6
6 5
4 2
6 36
Output
Yes
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
Yes
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 0 0
0 0 0 1 0 0
0 0 0 0 1 0
0 0 0 0 0 1
No
No
Yes
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1 1 1 1 1
1917E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)