Find Marble
285B1200· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
4 2 12 3 4 1
Output
3
Sample 2of 4
Input
4 3 34 1 3 2
Output
0
Sample 3of 4
Input
4 3 41 2 3 4
Output
-1
Sample 4of 4
Input
3 1 32 1 3
Output
-1
58%
285B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)