結果
| 問題 | No.3473 AtCoder < CMS |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 12:17:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 267,264 KB |
| 最終ジャッジ日時 | 2026-08-02 14:10:32 |
| 合計ジャッジ時間 | 7,094 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | -- * 20 |
ソースコード
mod = 998244353 def solve(): n, m = map(int, input().split()) print((pow(pow(2, n, mod) - 1, mod) - (pow(pow(2, m, mod), n, mod) - pow(pow(2, m, mod) - 1, n, mod))) % mod) t = int(input()) for _ in range(t): solve()