Monocarp and a Strategic Game
1841F2700· international gm1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
50 0 1 01 3 4 22 5 1 24 5 4 31 4 4 5
Output
85
Sample 2of 2
Input
43 3 1 55 1 5 34 4 4 11 3 4 4
Output
41
58%
1841F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)