結果

問題 No.1287 えぬけー
ユーザー tyawanmusityawanmusi
提出日時 2020-10-01 15:21:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 276 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 77,444 KB
最終ジャッジ日時 2023-09-21 06:55:29
合計ジャッジ時間 2,694 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,124 KB
testcase_01 AC 74 ms
71,352 KB
testcase_02 AC 75 ms
71,428 KB
testcase_03 AC 75 ms
71,360 KB
testcase_04 AC 70 ms
71,336 KB
testcase_05 AC 266 ms
77,444 KB
testcase_06 AC 269 ms
77,396 KB
testcase_07 AC 276 ms
77,228 KB
testcase_08 AC 260 ms
77,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda:sys.stdin.readline().rstrip()
mod = 10**9+7
t = int(input())
for _ in range(t):
  x, k = map(int, input().split())
  print(pow(x, pow(k, 5*10**8+1, mod-1), mod))
0