結果

問題 No.2528 pop_(backfront or not)
ユーザー tailstails
提出日時 2023-11-06 16:46:39
言語 cLay
(20240104-1)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 2,339 ms
コンパイル使用メモリ 175,072 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-11-06 16:46:43
合計ジャッジ時間 3,648 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 2 ms
4,348 KB
testcase_09 AC 2 ms
4,348 KB
testcase_10 AC 4 ms
4,348 KB
testcase_11 AC 5 ms
4,348 KB
testcase_12 AC 6 ms
4,348 KB
testcase_13 AC 7 ms
4,348 KB
testcase_14 AC 8 ms
4,348 KB
testcase_15 AC 11 ms
4,348 KB
testcase_16 AC 14 ms
4,348 KB
testcase_17 AC 14 ms
4,348 KB
testcase_18 AC 14 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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