結果
| 問題 | No.3473 AtCoder < CMS |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-20 12:17:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 220 bytes |
| 記録 | |
| コンパイル時間 | 538 ms |
| コンパイル使用メモリ | 85,160 KB |
| 実行使用メモリ | 278,860 KB |
| 最終ジャッジ日時 | 2026-03-20 20:53:22 |
| 合計ジャッジ時間 | 69,014 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 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()