cf/mirror

Lonely Mountain Dungeons

CF
1928D1900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
3 1 0
1 2 3
3 5 10
2 5 3
4 3 3
3 2 1 2
4 1 0
4 1 4 2
4 1 10
4 1 4 2
Output
4
40
9
13
0
1928D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)