結果

問題 No.1749 ラムドスウイルスの感染拡大
ユーザー tailstails
提出日時 2021-11-19 21:34:32
言語 cLay
(20240104-1)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 2,577 ms
コンパイル使用メモリ 172,312 KB
実行使用メモリ 7,540 KB
最終ジャッジ日時 2023-08-30 07:36:02
合計ジャッジ時間 4,079 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
7,276 KB
testcase_01 AC 4 ms
7,288 KB
testcase_02 AC 3 ms
7,464 KB
testcase_03 AC 3 ms
7,228 KB
testcase_04 AC 5 ms
7,292 KB
testcase_05 AC 3 ms
7,348 KB
testcase_06 AC 4 ms
7,292 KB
testcase_07 AC 3 ms
7,288 KB
testcase_08 AC 4 ms
7,268 KB
testcase_09 AC 4 ms
7,292 KB
testcase_10 AC 3 ms
7,232 KB
testcase_11 AC 3 ms
7,236 KB
testcase_12 AC 6 ms
7,364 KB
testcase_13 AC 4 ms
7,276 KB
testcase_14 AC 4 ms
7,316 KB
testcase_15 AC 5 ms
7,360 KB
testcase_16 AC 5 ms
7,292 KB
testcase_17 AC 6 ms
7,252 KB
testcase_18 AC 6 ms
7,320 KB
testcase_19 AC 5 ms
7,240 KB
testcase_20 AC 4 ms
7,332 KB
testcase_21 AC 4 ms
7,268 KB
testcase_22 AC 4 ms
7,344 KB
testcase_23 AC 3 ms
7,216 KB
testcase_24 AC 3 ms
7,308 KB
testcase_25 AC 4 ms
7,228 KB
testcase_26 AC 4 ms
7,288 KB
testcase_27 AC 3 ms
7,540 KB
testcase_28 AC 5 ms
7,520 KB
testcase_29 AC 5 ms
7,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@n,@m,@t,@s[m][2];
Mint d[1001][1000];
d[0][0]=1;
rep(i,t){
	rep(j,m){
		d[i+1][s[j][0]]+=d[i][s[j][1]];
		d[i+1][s[j][1]]+=d[i][s[j][0]];
	}
}
wt(d[t][0]);
0