結果
問題 |
No.2457 Stampaholic (Easy)
|
ユーザー |
👑 |
提出日時 | 2023-09-02 15:45:08 |
言語 | cLay (20241019-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 3,212 ms |
コンパイル使用メモリ | 179,472 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-11 22:18:53 |
合計ジャッジ時間 | 21,366 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 19 |
ソースコード
ll@H,@W,@N,@K;modint a,S,t,u;a.setmod(998244353);a=H*W;S=(H-K+1)*(W-K+1);rep(i,H){u=0;rep(j,W){t=(1-(max(min(i,H-K)-max(i-K,-1),0)*max(min(j,W-K)-max(j-K,-1),0))/S)**N;if(K<=j<W-K)u+=t*(W-2K),j=W-K-1;else u+=t;}wt(i,u*S);if(K<=i<H-K)a-=u*(H-2K),i=H-K-1;else a-=u;}wt(a);