cf/mirror

AND-permutations

CF
909F2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3
Output
NO
NO
Sample 2of 2
Input
6
Output
YES
6 5 4 3 2 1
YES
3 6 2 5 1 4
909F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)