結果
| 問題 | No.1206 OR, OR, OR...... |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-11-12 08:37:47 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 93 ms / 2,000 ms |
| + 750µs | |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,064 KB |
| 実行使用メモリ | 83,684 KB |
| 最終ジャッジ日時 | 2026-09-04 12:47:46 |
| 合計ジャッジ時間 | 2,340 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 |
ソースコード
from heapq import *
from itertools import *
from functools import *
from collections import *
import sys,math
input = sys.stdin.readline
mod = 998244353
def answer():
N,K = map(int,input().split())
print(N*(pow(2,N*K,mod) - pow(2,(N-1)*K,mod))%mod)
for _ in range(int(input())):
answer()