結果

問題 No.1206 OR, OR, OR......
ユーザー 👑 KazunKazun
提出日時 2020-08-30 15:40:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 1,553 ms
コンパイル使用メモリ 86,348 KB
実行使用メモリ 71,036 KB
最終ジャッジ日時 2023-08-09 14:10:56
合計ジャッジ時間 2,226 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,036 KB
testcase_01 AC 71 ms
71,012 KB
testcase_02 AC 71 ms
70,852 KB
testcase_03 AC 70 ms
70,924 KB
testcase_04 AC 70 ms
70,892 KB
testcase_05 AC 73 ms
70,700 KB
testcase_06 AC 72 ms
70,780 KB
testcase_07 AC 70 ms
70,952 KB
testcase_08 AC 70 ms
70,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T=int(input())
Mod=998244353

X=[0]*T
for i in range(T):
    N,K=map(int,input().split())
    alpha=pow(2,(N-1)*K,Mod)
    beta=pow(2,K,Mod)
    X[i]=(N*alpha*(beta-1))%Mod

print("\n".join(map(str,X)))
0