結果

問題 No.1287 えぬけー
ユーザー chineristACchineristAC
提出日時 2020-10-01 09:50:02
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 299 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 80,804 KB
最終ジャッジ日時 2023-09-21 06:45:57
合計ジャッジ時間 3,781 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

input = sys.stdin.readline

mod = 10**9+7

t = int(input())

assert(1<=t<=10**5)

for _ in range(t):
    x,k = map(int,input().split())

    assert(0<=x<mod)
    assert(1<=k<=5*10**8)
    assert(k%2==1)

    q = pow(k,5*10**8+1,mod-1)
    print(pow(x,q,mod))

g = input()
assert(g=="\n")
0