cf/mirror

pSort

CF
28B1600· expert2s256 MB⌨ stdin/stdout

Examples

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