結果
問題 |
No.3255 01 Matrix Counting
|
ユーザー |
![]() |
提出日時 | 2025-09-05 21:41:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 109 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 82,116 KB |
実行使用メモリ | 53,692 KB |
最終ジャッジ日時 | 2025-09-05 21:42:07 |
合計ジャッジ時間 | 1,690 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 |
ソースコード
H,W=map(int,input().split()) result=1 mod=998244353 result=pow(2,(H-1)*(W-1),mod)*4 result%=mod print(result)