cf/mirror

Emperor's Problem

CF
46G2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
Output
YES
0 0
1 0
0 2
Sample 2of 2
Input
3
Output
YES
0 1
-1 0
-1 -1
46G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)