cf/mirror

Subarray Sorting

CF
1187D2400· grandmaster2s256 MB⌨ stdin/stdout

Examples

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