結果

問題 No.403 2^2^2
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-16 23:17:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 107 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 86,724 KB
実行使用メモリ 73,020 KB
最終ジャッジ日時 2023-09-06 22:14:34
合計ジャッジ時間 4,703 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
72,896 KB
testcase_01 AC 107 ms
72,816 KB
testcase_02 AC 106 ms
73,020 KB
testcase_03 AC 106 ms
72,660 KB
testcase_04 AC 105 ms
72,868 KB
testcase_05 AC 106 ms
72,784 KB
testcase_06 AC 105 ms
72,864 KB
testcase_07 AC 105 ms
72,940 KB
testcase_08 AC 106 ms
72,900 KB
testcase_09 AC 106 ms
72,784 KB
testcase_10 AC 104 ms
72,700 KB
testcase_11 AC 105 ms
72,892 KB
testcase_12 AC 106 ms
72,864 KB
testcase_13 AC 105 ms
72,708 KB
testcase_14 AC 102 ms
72,788 KB
testcase_15 AC 103 ms
72,896 KB
testcase_16 AC 105 ms
72,784 KB
testcase_17 AC 103 ms
72,888 KB
testcase_18 AC 103 ms
72,780 KB
testcase_19 AC 105 ms
72,804 KB
testcase_20 AC 104 ms
72,660 KB
testcase_21 AC 107 ms
72,784 KB
testcase_22 AC 105 ms
72,780 KB
testcase_23 AC 104 ms
72,776 KB
testcase_24 AC 106 ms
72,784 KB
testcase_25 AC 107 ms
72,868 KB
testcase_26 AC 104 ms
72,648 KB
testcase_27 AC 105 ms
72,892 KB
testcase_28 AC 107 ms
72,804 KB
testcase_29 AC 107 ms
72,916 KB
権限があれば一括ダウンロードができます

ソースコード

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 = []
if a%mod==0:
    print(0,0)
    exit()
X.append(pow(a,b*c,mod))
y = pow(b,c,mod-1)
X.append(pow(a,y,mod))
print(*X)
0