cf/mirror

Another Sorting Problem

CF
2231B1100· newbie1.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
4
1 2 3 4
5
10 5 9 4 4
7
8 3 9 4 10 5 11
6
5 3 10 5 9 7
3
2 1 1
5
2 1 1 2 1
3
3 1 2
5
2 1 2 3 1
Output
YES
NO
YES
NO
YES
YES
YES
NO
2231B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)