結果

問題 No.1287 えぬけー
ユーザー mlihua09mlihua09
提出日時 2020-11-13 22:23:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 476 ms / 2,000 ms
コード長 182 bytes
コンパイル時間 1,470 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 78,824 KB
最終ジャッジ日時 2023-09-30 03:17:19
合計ジャッジ時間 4,031 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,296 KB
testcase_01 AC 76 ms
71,244 KB
testcase_02 AC 75 ms
70,964 KB
testcase_03 AC 77 ms
71,212 KB
testcase_04 AC 77 ms
71,152 KB
testcase_05 AC 464 ms
78,324 KB
testcase_06 AC 467 ms
78,824 KB
testcase_07 AC 476 ms
78,732 KB
testcase_08 AC 440 ms
78,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod1 = 10 ** 9 + 7

mod2 = 5 * 10 ** 8 + 3

for _ in range(int(input())):
    
    X, K = map(int, input().split())
    
    print(pow(X, pow(K, mod2 - 2, mod2 * 2), mod1))
    
    
0