Communication Routing Challenge
1576A2s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
8 15 3 10 0 0 1 100 10501 1 0 1 200 22002 1 0 1 200 994003 2 0 3 100 4504 3 0 3 500 11205 4 1 2 1000 400006 5 2 3 600 100007 5 2 3 600 100008 6 1 4 120 25009 6 1 4 120 45010 7 1 5 170 125011 8 2 5 200 250012 9 3 5 100 125013 10 3 6 300 115014 11 3 7 300 11002 5 72 6 72 6 110 4 6 100
Output
10 8 0 3 13
58%
1576A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)