cf/mirror

Almost Roman

CF
2170D2200· master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3 3
???
3 0 0
2 3 1
0 1 2
10 7
??IV?VXIV?
0 0 4
4 4 0
1 1 2
1 1 3
1 1 4
1 2 1
2 2 0
9 5
?V????IVV
9 2 4
4 1 5
0 1 4
4 8 1
3 2 7
3 2
I?V
0 1 0
0 0 1
Output
30
9
5
25
43
36
27
25
42
53
19
17
19
33
17
9
5
2170D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)