結果
問題 | No.1749 ラムドスウイルスの感染拡大 |
ユーザー |
![]() |
提出日時 | 2021-11-19 22:13:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 197 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,512 KB |
実行使用メモリ | 77,416 KB |
最終ジャッジ日時 | 2025-01-01 18:11:22 |
合計ジャッジ時間 | 3,465 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
N,M,T=map(int, input().split())E=[]for i in range(M):s,t=map(int, input().split())E.append((s,t))from collections import defaultdictD=defaultdict(int)D[0]=1mod=998244353for i in range(T):DD=defaultdict(int)for s,t in E:DD[s]+=D[t]DD[t]+=D[s]DD[s]%=modDD[t]%=modD=DDprint(D[0])