cf/mirror

Codeforces Scoreboard

CF
1787H3300· legendary gm3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4
10000 1000000000 2006
10000 1000000000 9999
2 999991010 1010
1000000000 1000000000 999999999
6
1 8 1
9 29 4
2 14 3
4 13 1
2 19 5
10 12 5
8
4 10 1
4 19 8
1 14 3
4 15 6
2 9 6
1 11 10
2 19 12
4 19 14
10
5 12 7
5 39 12
2 39 11
3 23 15
5 30 11
3 17 13
5 29 14
3 17 11
3 36 18
3 9 8
Output
3999961003
53
78
180
1787H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)