結果

問題 No.403 2^2^2
ユーザー No
提出日時 2018-01-31 16:28:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 168 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 29,844 KB
最終ジャッジ日時 2024-12-29 23:49:42
合計ジャッジ時間 32,860 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 TLE * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

ss = input().split("^")
a = int(ss[0])
b = int(ss[1])
c = int(ss[2])

a1 = pow(a,b * c,1000000007)
m = pow(b,c)
a2 = pow(a,m,1000000007)

print(str(a1) + " " + str(a2))
0