結果

問題 No.3255 01 Matrix Counting
ユーザー lif4635
提出日時 2025-09-05 05:14:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 83,020 KB
実行使用メモリ 53,464 KB
最終ジャッジ日時 2025-09-05 05:36:05
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

h, w = map(int, input().split())

assert 1 <= h <= 10 ** 9
assert 1 <= w <= 10 ** 9

mod = 998244353
print(pow(2, (h-1)*(w-1)+2, mod))
0