Workout plan
1218F1500· specialist1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5 1000010000 30000 30000 40000 20000200005 2 8 3 6
Output
5
Sample 2of 2
Input
5 1000010000 40000 30000 30000 20000100005 2 8 3 6
Output
-1
58%
1218F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)