結果
| 問題 | No.2631 Rectangle Grid Game | 
| コンテスト | |
| ユーザー | 👑  potato167 | 
| 提出日時 | 2024-02-12 15:01:04 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 13 ms / 2,000 ms | 
| コード長 | 202 bytes | 
| コンパイル時間 | 2,722 ms | 
| コンパイル使用メモリ | 150,400 KB | 
| 最終ジャッジ日時 | 2025-02-19 05:42:58 | 
| ジャッジサーバーID (参考情報) | judge3 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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";
}
            
            
            
        