cf/mirror

Optimal Reduction

CF
1713B1000· newbie1s256 MB⌨ stdin/stdout

Examples

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