結果

問題 No.298 話の伝達
ユーザー yuki2006
提出日時 2015-11-06 23:09:42
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-13 13:45:13
合計ジャッジ時間 1,147 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

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