cf/mirror

Souvlaki VS. Kalamaki

CF
2163A800· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
4
4 2 2 1
4
1 1 1 1
5
1 5 1 5 1
3
1 2 3
5
1 3 2 3 5
Output
YES
YES
YES
NO
NO
2163A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)