結果

問題 No.403 2^2^2
ユーザー ayaoniayaoni
提出日時 2020-12-05 16:17:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 971 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 71,308 KB
最終ジャッジ日時 2023-10-13 22:14:37
合計ジャッジ時間 3,972 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
70,820 KB
testcase_01 AC 72 ms
71,308 KB
testcase_02 AC 71 ms
71,116 KB
testcase_03 AC 74 ms
71,096 KB
testcase_04 AC 71 ms
71,064 KB
testcase_05 AC 70 ms
71,156 KB
testcase_06 AC 69 ms
71,152 KB
testcase_07 AC 69 ms
71,228 KB
testcase_08 AC 68 ms
71,104 KB
testcase_09 AC 69 ms
71,092 KB
testcase_10 AC 68 ms
71,096 KB
testcase_11 AC 67 ms
71,016 KB
testcase_12 AC 69 ms
71,252 KB
testcase_13 AC 68 ms
70,752 KB
testcase_14 AC 69 ms
71,232 KB
testcase_15 AC 69 ms
70,944 KB
testcase_16 AC 68 ms
71,036 KB
testcase_17 AC 69 ms
71,028 KB
testcase_18 AC 69 ms
71,048 KB
testcase_19 AC 68 ms
70,900 KB
testcase_20 AC 70 ms
71,244 KB
testcase_21 AC 70 ms
71,232 KB
testcase_22 AC 66 ms
71,292 KB
testcase_23 AC 68 ms
70,876 KB
testcase_24 AC 70 ms
70,948 KB
testcase_25 AC 73 ms
71,040 KB
testcase_26 AC 72 ms
71,288 KB
testcase_27 AC 69 ms
70,872 KB
testcase_28 AC 68 ms
71,248 KB
testcase_29 AC 68 ms
71,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C = map(int,input().split('^'))
mod = 10**9+7
if A % mod == 0:
    print(0,0)
else:
    X = pow(A,B*C,mod)
    Y = pow(A,pow(B,C,mod-1),mod)
    print(X,Y)
0