結果

問題 No.403 2^2^2
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-16 23:15:22
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 73,332 KB
最終ジャッジ日時 2023-09-06 22:11:54
合計ジャッジ時間 5,036 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
73,220 KB
testcase_01 AC 108 ms
72,904 KB
testcase_02 AC 109 ms
73,184 KB
testcase_03 AC 106 ms
73,040 KB
testcase_04 AC 106 ms
73,264 KB
testcase_05 AC 114 ms
73,184 KB
testcase_06 AC 108 ms
73,240 KB
testcase_07 AC 105 ms
72,708 KB
testcase_08 AC 107 ms
72,976 KB
testcase_09 AC 109 ms
73,220 KB
testcase_10 AC 106 ms
72,712 KB
testcase_11 AC 106 ms
72,816 KB
testcase_12 AC 109 ms
73,116 KB
testcase_13 AC 107 ms
72,996 KB
testcase_14 AC 105 ms
72,996 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 105 ms
73,008 KB
testcase_18 AC 104 ms
73,276 KB
testcase_19 AC 103 ms
72,968 KB
testcase_20 AC 104 ms
72,996 KB
testcase_21 AC 107 ms
73,152 KB
testcase_22 AC 107 ms
73,180 KB
testcase_23 AC 105 ms
72,912 KB
testcase_24 AC 102 ms
73,008 KB
testcase_25 WA -
testcase_26 AC 105 ms
72,860 KB
testcase_27 AC 104 ms
72,916 KB
testcase_28 AC 103 ms
72,992 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

mod = 10**9 + 7
a,b,c = (map(int,input().split('^')))

X = []
X.append(pow(a,b*c,mod))
y = pow(b,c,mod-1)
X.append(pow(a,y,mod))
print(*X)
0