結果

問題 No.2528 pop_(backfront or not)
ユーザー tailstails
提出日時 2023-11-06 16:44:54
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 2,341 ms
コンパイル使用メモリ 175,196 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-11-06 16:44:58
合計ジャッジ時間 3,545 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 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 3 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 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

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