cf/mirror

Make Equal

CF
1931B800· newbie2s256 MB⌨ stdin/stdout
#greedy

Examples

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