Bear and Forgotten Tree 2
653E2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 4 21 22 34 24 1
Output
possible
Sample 2of 2
Input
6 5 31 21 31 41 51 6
Output
impossible
58%
653E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…