cf/mirror

Game with Coins

CF
245C1700· expert2s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
1
1
Output
-1
Sample 2of 2
Input
3
1 2 3
Output
3
245C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)