結果
| 問題 |
No.1206 OR, OR, OR......
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-30 14:12:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 152 bytes |
| コンパイル時間 | 358 ms |
| コンパイル使用メモリ | 82,220 KB |
| 実行使用メモリ | 52,736 KB |
| 最終ジャッジ日時 | 2024-11-15 07:30:59 |
| 合計ジャッジ時間 | 1,315 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 |
ソースコード
mod=998244353
for _ in range(int(input())):
N,K=map(int,input().split())
res=N*(pow(2,N*K,mod)-pow(2,(N-1)*K,mod))
res%=mod
print(res)