結果

問題 No.2683 Two Sheets
ユーザー 👑 p-adicp-adic
提出日時 2024-03-21 08:46:21
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 261 bytes
コンパイル時間 3,395 ms
コンパイル使用メモリ 175,436 KB
実行使用メモリ 13,480 KB
最終ジャッジ日時 2024-03-21 08:46:29
合計ジャッジ時間 6,856 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
13,480 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 13 ms
6,676 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#define MD 998244353
ll@H,@W,@A,@B;Mint a=H*W,S=(H-A+1)*(W-B+1),t,u;a=H*W;rep(i,H){u=0;rep(j,W){t=(1-(max(min(i,H-A)-max(i-A,-1),0)*max(min(j,W-B)-max(j-B,-1),0))/S)**2;if(B<=j<W-B)u+=t*(W-2B),j=W-B-1;else u+=t;}if(A<=i<H-A)a-=u*(H-2A),i=H-A-1;else a-=u;}wt(a);
0