cf/mirror

Jagged Swaps

CF
1896A800· newbie1s256 MB⌨ stdin/stdout

Examples

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