結果

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

ソースコード

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), mod)
print x, y
0