結果

問題 No.2528 pop_(backfront or not)
ユーザー tailstails
提出日時 2023-11-03 23:15:52
言語 cLay
(20240104-1)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 228 bytes
コンパイル時間 3,986 ms
コンパイル使用メモリ 176,192 KB
実行使用メモリ 34,736 KB
最終ジャッジ日時 2023-11-03 23:15:58
合計ジャッジ時間 5,684 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
34,700 KB
testcase_01 AC 24 ms
34,700 KB
testcase_02 AC 23 ms
34,700 KB
testcase_03 AC 24 ms
34,700 KB
testcase_04 AC 23 ms
34,700 KB
testcase_05 AC 23 ms
34,700 KB
testcase_06 AC 25 ms
34,700 KB
testcase_07 AC 24 ms
34,704 KB
testcase_08 AC 25 ms
34,704 KB
testcase_09 AC 26 ms
34,708 KB
testcase_10 AC 36 ms
34,716 KB
testcase_11 AC 37 ms
34,716 KB
testcase_12 AC 42 ms
34,720 KB
testcase_13 AC 44 ms
34,724 KB
testcase_14 AC 48 ms
34,724 KB
testcase_15 AC 71 ms
34,732 KB
testcase_16 AC 73 ms
34,736 KB
testcase_17 AC 72 ms
34,736 KB
testcase_18 AC 69 ms
34,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Mint d[2001][4004];
d[0][1]=1;
ll@n;
rep(y,1,n+1){
	rep(x,1,2y){
		d[y][x+1]=d[y-1][x+1]*((2y-x-1)*(2y-x-2)/2)+d[y-1][x]*((2y-x-1)*(x-1)+1)+d[y-1][x-1]*((x-1)*(x-2)/2);
	}
}
rep(x,2n+1){
	wtLn(d[n][x+1]);
}
0