AND-permutations
909F2500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3
Output
NONO
Sample 2of 2
Input
6
Output
YES6 5 4 3 2 1YES3 6 2 5 1 4
58%
909F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3
NONO
6
YES6 5 4 3 2 1YES3 6 2 5 1 4