Vlad and the Mountains
1851G2000· candidate master5s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
27 71 5 3 4 2 4 11 44 33 63 22 55 65 751 1 36 2 04 7 01 7 41 7 26 54 7 6 2 5 11 35 31 52 46 251 5 11 3 11 2 10006 2 66 2 5
Output
YESNOYESYESNOYESNONOYESNO
Sample 2of 3
Input
23 21 3 91 22 351 1 13 2 21 1 23 3 01 2 13 31 4 11 22 31 353 3 91 3 61 1 23 3 63 3 4
Output
YESYESYESYESNOYESYESYESYESYES
Sample 3of 3
Input
16 107 9 2 10 8 64 26 14 53 56 41 32 66 51 23 654 4 83 3 15 5 92 1 76 6 10
Output
YESYESYESYESYES
58%
1851G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…