Problem of offices
793E2900· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
52 3 4 51 1 1 1
Output
YES
Sample 2of 3
Input
103 8 9 101 2 2 2 2 2 1 1 1
Output
NO
Sample 3of 3
Input
1313 12 9 71 1 1 1 5 5 2 2 2 3 3 4
Output
YES
58%
793E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…