結果

問題 No.2683 Two Sheets
ユーザー tailstails
提出日時 2024-03-20 22:46:44
言語 cLay
(20240104-1)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 4,354 ms
コンパイル使用メモリ 175,048 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-03-20 22:46:55
合計ジャッジ時間 5,223 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 1 ms
6,548 KB
testcase_02 AC 5 ms
6,548 KB
testcase_03 AC 53 ms
6,548 KB
testcase_04 AC 13 ms
6,548 KB
testcase_05 AC 55 ms
6,548 KB
testcase_06 AC 44 ms
6,548 KB
testcase_07 AC 31 ms
6,548 KB
testcase_08 AC 72 ms
6,548 KB
testcase_09 AC 38 ms
6,548 KB
testcase_10 AC 67 ms
6,548 KB
testcase_11 AC 74 ms
6,548 KB
testcase_12 AC 54 ms
6,548 KB
testcase_13 AC 60 ms
6,548 KB
testcase_14 AC 71 ms
6,548 KB
testcase_15 AC 48 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
Mint f(ll h,ll a){
	Mint r;
	rep(i,h){
		r+=(Mint(min(h-a+1,i+1)-max(0,i-a+1))/(h-a+1))**2;
	}
	return r;
}
{
	ll@h,@w,@a,@b;
	wt(2a*b-f(h,a)*f(w,b));
}
0