結果

問題 No.3255 01 Matrix Counting
ユーザー yu23578
提出日時 2025-09-05 21:54:07
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 1,901 ms
コンパイル使用メモリ 198,316 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-05 21:54:11
合計ジャッジ時間 2,678 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/math>
using namespace std;
using namespace atcoder;
#define int long long

signed main(){
  int H,W; cin>>H>>W;
  cout << pow_mod(2,(H-1)*(W-1)+2,998244353) << "\n";
}
0