cf/mirror

D-Function

CF
1985G1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
0 1 4
0 2 7
1 2 1
1 2 3
582 74663 3
0 3 1
Output
2
3
90
12
974995667
999
1985G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)