結果

問題 No.403 2^2^2
ユーザー りあん
提出日時 2016-01-01 01:06:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-06 15:11:35
合計ジャッジ時間 2,142 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

inp = input().split("^")
a = int(inp[0])
b = int(inp[1])
c = int(inp[2])
M = 1000000007
if a % M == 0 :
    print("0 0")
else :
    print(pow(pow(a, b, M), c, M), pow(a, pow(b, c, M-1), M))
0