結果
問題 |
No.1287 えぬけー
|
ユーザー |
![]() |
提出日時 | 2020-10-01 15:21:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 230 ms / 2,000 ms |
コード長 | 187 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,672 KB |
実行使用メモリ | 76,220 KB |
最終ジャッジ日時 | 2024-07-07 01:21:18 |
合計ジャッジ時間 | 2,020 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 5 |
ソースコード
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))