結果

問題 No.2528 pop_(backfront or not)
ユーザー tailstails
提出日時 2023-11-03 23:15:11
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 3,045 ms
コンパイル使用メモリ 176,244 KB
実行使用メモリ 19,188 KB
最終ジャッジ日時 2023-11-03 23:15:17
合計ジャッジ時間 5,134 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
19,092 KB
testcase_01 AC 14 ms
19,092 KB
testcase_02 AC 14 ms
19,092 KB
testcase_03 AC 14 ms
19,092 KB
testcase_04 AC 14 ms
19,092 KB
testcase_05 AC 15 ms
19,092 KB
testcase_06 AC 14 ms
19,092 KB
testcase_07 AC 15 ms
19,096 KB
testcase_08 AC 15 ms
19,096 KB
testcase_09 AC 18 ms
19,100 KB
testcase_10 AC 27 ms
19,108 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Mint d[2001][2004];
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