yimjunhyuck   7달 전

입력

...

The following m lines describe the system of roads in Byteland. Each of them contains three space-separated integers a, b, c (1 ≤ a, b ≤ n, a ≠ b, 1 ≤ c ≤ 1 000) denoting a bidirectional road of length c connecting cities with numbers a and b.

댓글을 작성하려면 로그인해야 합니다.