結果

問題 No.1578 A × B × C
ユーザー titan23
提出日時 2022-06-11 00:23:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-09-21 07:31:13
合計ジャッジ時間 2,231 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()
mod = 1000000007

##################

a, b, c = map(int, input().split())
k = int(input())

ans = 1
ans *= pow(a, 2*k, mod)
ans *= pow(b, 2*k, mod)
ans *= pow(c, 2*k, mod)
print(ans % mod)
0