Alice and the Unfair Game
1236E2500· grandmaster1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 32 2 2
Output
7
Sample 2of 2
Input
5 23 1
Output
21
58%
1236E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
3 32 2 2
7
5 23 1
21