cf/mirror

Permutation of Given

CF
1918G2700· international gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
Output
YES
1 2 -2 -1
Sample 2of 2
Input
5
Output
NO
1918G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)