結果

問題 No.298 話の伝達
ユーザー yuki2006yuki2006
提出日時 2015-11-06 23:09:42
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 6,076 KB
最終ジャッジ日時 2023-10-11 14:52:40
合計ジャッジ時間 1,303 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

N, M = map(int, raw_input().split())
edge = [[0 for _ in xrange(N)] for _ in xrange(N)]

assert 1 <= N <= 20
assert 1 <= M <= N * (N - 1) / 2
for i in xrange(M):
    A, B, C = map(int, raw_input().split())
    assert 0 <= A <= N - 1
    assert 0 <= B <= N - 1
    assert 1 <= C <= 100
0