cf/mirror

Arithmetics Competition

CF
2132E1700· expert3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
3 4 5
10 20 30
1 2 3 4
0 0 0
3 4 7
3 4 4
1 4 4
2 2 4
5 5 2
500000000 300000000 100000000 900000000 700000000
800000000 400000000 1000000000 600000000 200000000
1 4 3
5 2 6
4 4 1
100 100 20 20
100 100 20 20
4 4 5
3 3 6
2 363 711
286 121 102
1 1 1
3 1 1
1 2 0
1 3 2
0 1 0
3 3 3
Output
0
70
64
39
57
2700000000
4200000000
420
711
711
0
997
0
1360
2132E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)