結果

問題 No.1749 ラムドスウイルスの感染拡大
ユーザー Eki1009Eki1009
提出日時 2021-11-19 21:45:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 321 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 86,604 KB
実行使用メモリ 77,984 KB
最終ジャッジ日時 2023-08-30 07:59:31
合計ジャッジ時間 6,117 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,364 KB
testcase_01 AC 72 ms
71,188 KB
testcase_02 AC 73 ms
71,416 KB
testcase_03 AC 74 ms
70,948 KB
testcase_04 AC 130 ms
76,888 KB
testcase_05 AC 73 ms
71,460 KB
testcase_06 AC 86 ms
76,124 KB
testcase_07 AC 84 ms
76,380 KB
testcase_08 AC 73 ms
71,332 KB
testcase_09 AC 79 ms
76,128 KB
testcase_10 AC 159 ms
77,560 KB
testcase_11 AC 162 ms
77,684 KB
testcase_12 AC 321 ms
77,728 KB
testcase_13 AC 100 ms
76,824 KB
testcase_14 AC 104 ms
76,972 KB
testcase_15 AC 110 ms
76,776 KB
testcase_16 AC 114 ms
76,960 KB
testcase_17 AC 178 ms
77,128 KB
testcase_18 AC 290 ms
77,984 KB
testcase_19 AC 265 ms
77,712 KB
testcase_20 AC 101 ms
77,000 KB
testcase_21 AC 106 ms
77,104 KB
testcase_22 AC 74 ms
71,120 KB
testcase_23 AC 88 ms
76,332 KB
testcase_24 AC 87 ms
76,360 KB
testcase_25 AC 152 ms
77,548 KB
testcase_26 AC 112 ms
77,516 KB
testcase_27 AC 106 ms
77,404 KB
testcase_28 AC 128 ms
77,028 KB
testcase_29 AC 129 ms
76,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353
n,m,t = map(int,input().split())
G = [[] for _ in range(n)]
for _ in range(m):
    u,v = map(int,input().split())
    G[u].append(v)
    G[v].append(u)
C = [0]*n
C[0] = 1
for _ in range(t):
    C = [sum(C[u] for u in G[i])%mod for i in range(n)]
print(C[0])
0