cf/mirror

Everything Everywhere All But One

CF
1686A800· newbie1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1
Input
4
3
42 42 42
5
1 2 3 4 5
4
4 3 2 1
3
24 2 22
Output
YES
YES
NO
NO
1686A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)