結果

問題 No.2527 H and W
ユーザー tailstails
提出日時 2023-11-06 16:19:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 9,142 ms
コンパイル使用メモリ 223,200 KB
実行使用メモリ 13,700 KB
最終ジャッジ日時 2023-11-06 16:19:22
合計ジャッジ時間 10,759 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
13,700 KB
testcase_01 AC 16 ms
13,700 KB
testcase_02 AC 16 ms
13,700 KB
testcase_03 AC 16 ms
13,700 KB
testcase_04 AC 17 ms
13,700 KB
testcase_05 AC 16 ms
13,700 KB
testcase_06 AC 17 ms
13,700 KB
testcase_07 AC 17 ms
13,700 KB
testcase_08 AC 17 ms
13,700 KB
testcase_09 AC 17 ms
13,700 KB
testcase_10 AC 17 ms
13,700 KB
testcase_11 AC 17 ms
13,700 KB
testcase_12 AC 17 ms
13,700 KB
testcase_13 AC 17 ms
13,700 KB
testcase_14 AC 17 ms
13,700 KB
testcase_15 AC 16 ms
13,700 KB
testcase_16 AC 17 ms
13,700 KB
testcase_17 AC 17 ms
13,700 KB
testcase_18 AC 17 ms
13,700 KB
testcase_19 AC 17 ms
13,700 KB
testcase_20 AC 17 ms
13,700 KB
testcase_21 AC 17 ms
13,700 KB
testcase_22 AC 17 ms
13,700 KB
testcase_23 AC 17 ms
13,700 KB
testcase_24 AC 17 ms
13,700 KB
testcase_25 AC 17 ms
13,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Modint ifactri[1d6+1],x=490058372;
rrep(i,1d6+1){
	ifactri[i]=x;
	x*=i;
}
ll@h,@w,@k,d[7d3],n=Divisor(k,d),z=0;
rep[d](x,n){
	if(h-x>=0&&w-k/x>=0){
		z+=(ll)(ifactri[x]*ifactri[h-x]*ifactri[k/x]*ifactri[w-k/x]);
	}
}
wt(Modint(z)/Modint(ifactri[h]*ifactri[w]));
0