結果

問題 No.403 2^2^2
ユーザー srup٩(๑`н´๑)۶
提出日時 2016-08-26 22:06:09
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 137 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-11-08 09:29:10
合計ジャッジ時間 1,307 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, raw_input().split('^'))
mod = 10**9 + 7
x = pow(pow(a, b, mod), c, mod)
y = pow(a, pow(b, c, mod - 1), mod)
print x, y
0