結果

問題 No.2164 Equal Balls
ユーザー tailstails
提出日時 2022-12-15 18:09:55
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 6,160 ms
コンパイル使用メモリ 188,024 KB
実行使用メモリ 12,860 KB
最終ジャッジ日時 2024-04-26 18:39:51
合計ジャッジ時間 69,440 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,248 KB
testcase_01 AC 11 ms
5,248 KB
testcase_02 AC 14 ms
5,376 KB
testcase_03 AC 11 ms
5,376 KB
testcase_04 AC 15 ms
5,376 KB
testcase_05 AC 19 ms
5,376 KB
testcase_06 AC 18 ms
5,376 KB
testcase_07 AC 17 ms
5,376 KB
testcase_08 AC 240 ms
5,376 KB
testcase_09 AC 198 ms
5,376 KB
testcase_10 AC 120 ms
5,376 KB
testcase_11 AC 438 ms
5,376 KB
testcase_12 AC 255 ms
5,376 KB
testcase_13 AC 185 ms
5,376 KB
testcase_14 AC 226 ms
5,376 KB
testcase_15 AC 417 ms
5,376 KB
testcase_16 AC 231 ms
5,376 KB
testcase_17 AC 77 ms
5,376 KB
testcase_18 AC 318 ms
5,376 KB
testcase_19 WA -
testcase_20 AC 277 ms
5,376 KB
testcase_21 AC 60 ms
5,376 KB
testcase_22 AC 55 ms
5,376 KB
testcase_23 AC 1,204 ms
7,296 KB
testcase_24 WA -
testcase_25 AC 1,041 ms
6,912 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 496 ms
5,376 KB
testcase_30 AC 1,073 ms
6,528 KB
testcase_31 AC 1,428 ms
7,808 KB
testcase_32 WA -
testcase_33 AC 759 ms
6,144 KB
testcase_34 AC 1,066 ms
6,912 KB
testcase_35 AC 208 ms
5,376 KB
testcase_36 WA -
testcase_37 AC 1,618 ms
8,192 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 2,159 ms
8,448 KB
testcase_50 AC 2,162 ms
8,576 KB
testcase_51 AC 2,183 ms
8,448 KB
testcase_52 AC 2,169 ms
8,448 KB
testcase_53 AC 2,178 ms
8,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Comb<Mint>c;
ll@n,@m,@a[n],@b[n];
Mint e[m][601];
rep(k,m){
	rep(j,601){
		e[k][j]=1;
	}
}
rep(i,n){
	rep(j,601){
		e[i%m][j]*=c.C(a[i]+b[i],j-300+b[i]);
	}
}
Mint g[1<<16];
g[0]=1;
fft(1<<16,g);
rep(k,m){
	Mint h[1<<16];
	rep(i,601){
		h[i]=e[k][i];
	}
	fft(1<<16,h);
	rep(i,1<<16){
		g[i]*=h[i];
	}
}
fftinv(1<<16,g);
wt(g[m*300]/(1<<16));
0