cf/mirror

Petr and a Combination Lock

CF
1097B1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3
10
20
30
Output
YES
Sample 2of 3
Input
3
10
10
10
Output
NO
Sample 3of 3
Input
3
120
120
120
Output
YES
1097B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)