結果

問題 No.403 2^2^2
ユーザー koyoprokoyopro
提出日時 2020-02-26 23:28:01
言語 PyPy2
(7.3.13)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 2,437 ms
コンパイル使用メモリ 77,468 KB
実行使用メモリ 76,544 KB
最終ジャッジ日時 2023-08-03 18:30:23
合計ジャッジ時間 4,081 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,372 KB
testcase_01 AC 73 ms
76,328 KB
testcase_02 AC 73 ms
76,108 KB
testcase_03 AC 74 ms
76,336 KB
testcase_04 AC 72 ms
76,432 KB
testcase_05 AC 74 ms
76,160 KB
testcase_06 AC 74 ms
76,336 KB
testcase_07 AC 74 ms
76,380 KB
testcase_08 AC 74 ms
76,116 KB
testcase_09 AC 74 ms
76,208 KB
testcase_10 AC 73 ms
76,324 KB
testcase_11 AC 75 ms
76,432 KB
testcase_12 AC 74 ms
76,400 KB
testcase_13 AC 73 ms
76,116 KB
testcase_14 AC 72 ms
76,380 KB
testcase_15 AC 72 ms
76,404 KB
testcase_16 AC 72 ms
76,408 KB
testcase_17 AC 73 ms
76,360 KB
testcase_18 AC 74 ms
76,340 KB
testcase_19 AC 73 ms
76,544 KB
testcase_20 AC 73 ms
76,164 KB
testcase_21 AC 73 ms
76,260 KB
testcase_22 AC 72 ms
76,308 KB
testcase_23 AC 73 ms
76,112 KB
testcase_24 AC 73 ms
76,320 KB
testcase_25 AC 73 ms
76,188 KB
testcase_26 AC 73 ms
76,424 KB
testcase_27 AC 75 ms
76,112 KB
testcase_28 AC 73 ms
76,184 KB
testcase_29 AC 74 ms
76,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = [int(x) for x in raw_input().split('^')]
MOD=1000000007
p=pow(b,c,MOD-1) or MOD-1
print("{} {}".format(pow(pow(a, b, MOD), c, MOD),pow(a, p, MOD)))
0