cf/mirror

Replace and Sum

CF
2193C1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3 1
3 2 1
1 2 3
1 3
1 1
1
2
1 1
3 2
6 7 5
9 6 8
1 2
2 3
4 3
4 3 2 1
5 1 3 1
1 2
2 4
3 4
Output
9
2
17 16
8 7 4
2193C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)