cf/mirror

Coin Game

CF
2087C2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
BGSSBGB
5
1 7
2 6
1 5
3 3
4 7
Output
5
3
3
1
3
2087C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)