Petr and a Combination Lock
1097B1200· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3102030
Output
YES
Sample 2of 3
Input
3101010
Output
NO
Sample 3of 3
Input
3120120120
Output
YES
58%
1097B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)