cf/mirror

Bear and Three Balls

CF
653A900· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4
18 55 16 17
Output
YES
Sample 2of 3
Input
6
40 41 43 44 44 44
Output
NO
Sample 3of 3
Input
8
5 972 3 4 1 4 970 971
Output
YES
653A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)