cf/mirror

Fountains

CF
799C1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
3 7 6
10 8 C
4 3 C
5 6 D
Output
9
Sample 2of 3
Input
2 4 5
2 5 C
2 1 D
Output
0
Sample 3of 3
Input
3 10 10
5 5 C
5 5 C
10 11 D
Output
10
799C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)