結果

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

ソースコード

diff #

#include <iostream>
using namespace std;
#include <atcoder/math>

int main() {
	long long H, W; cin >> H >> W;
	cout << atcoder::pow_mod(2, (H-1)*(W-1)+2, 998244353) << endl;
}
0