結果

問題 No.403 2^2^2
ユーザー 🍡yurahuna
提出日時 2016-07-23 00:44:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 331 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 53,232 KB
最終ジャッジ日時 2024-11-06 15:33:16
合計ジャッジ時間 2,321 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split('^'))
mod = 10**9 + 7
if a % mod == 0:
    print(0, 0)
else:
    print(pow(pow(a, b, mod), c, mod), pow(a, pow(b, c, mod - 1), mod))
0