結果
| 問題 | No.2631 Rectangle Grid Game |
| コンテスト | |
| ユーザー |
👑 potato167
|
| 提出日時 | 2024-02-12 15:01:04 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 202 bytes |
| 記録 | |
| コンパイル時間 | 2,258 ms |
| コンパイル使用メモリ | 169,368 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-03 15:33:54 |
| 合計ジャッジ時間 | 3,469 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include<iostream>
#include<atcoder/all>
atcoder::modint998244353 f(long a){
return (a+a/2)*(a-a/2-1);
}
int main(){
long h,w;
std::cin>>h>>w;
std::cout<<(f(h)*w*w+f(w)*h*h-f(h)*f(w)).val()<<"\n";
}
potato167