結果

問題 No.1749 ラムドスウイルスの感染拡大
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-11-19 21:53:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 421 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 77,488 KB
最終ジャッジ日時 2023-08-30 08:14:16
合計ジャッジ時間 4,545 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,340 KB
testcase_01 AC 74 ms
71,368 KB
testcase_02 AC 74 ms
71,324 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 74 ms
71,320 KB
testcase_07 WA -
testcase_08 AC 75 ms
71,264 KB
testcase_09 WA -
testcase_10 AC 75 ms
71,384 KB
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 AC 118 ms
77,488 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 81 ms
75,908 KB
testcase_24 WA -
testcase_25 AC 97 ms
77,140 KB
testcase_26 AC 101 ms
76,992 KB
testcase_27 AC 100 ms
77,188 KB
testcase_28 WA -
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,t = map(int,input().split())
l = [[] for _ in range(n)]
for i in range(m):
    s,t = map(int,input().split())
    l[s].append(t)
    l[t].append(s)
rmd = [0] * n
rmd[0] = 1
for i in range(t):
    new_rmd = [0] * n
    for node in range(n):
        for nd in l[node]:
            new_rmd[nd] += rmd[node] 
            new_rmd[nd] %= 998244353
#     print(new_rmd)
    rmd = new_rmd[::]
print(rmd[0])
0