結果

問題 No.403 2^2^2
ユーザー ciel
提出日時 2016-07-25 01:52:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 96 bytes
コンパイル時間 1,119 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-12-23 15:18:04
合計ジャッジ時間 2,475 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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