結果

問題 No.1578 A × B × C
ユーザー yudai1102jpyudai1102jp
提出日時 2021-07-02 21:30:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 71,280 KB
最終ジャッジ日時 2023-09-11 21:18:53
合計ジャッジ時間 3,246 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
70,836 KB
testcase_01 AC 68 ms
71,016 KB
testcase_02 AC 68 ms
71,088 KB
testcase_03 AC 67 ms
71,140 KB
testcase_04 AC 67 ms
71,016 KB
testcase_05 AC 68 ms
70,956 KB
testcase_06 AC 69 ms
70,932 KB
testcase_07 AC 69 ms
71,200 KB
testcase_08 AC 69 ms
70,776 KB
testcase_09 AC 69 ms
70,772 KB
testcase_10 AC 68 ms
71,196 KB
testcase_11 AC 70 ms
71,088 KB
testcase_12 AC 71 ms
70,896 KB
testcase_13 AC 70 ms
70,932 KB
testcase_14 AC 75 ms
71,280 KB
testcase_15 AC 70 ms
70,948 KB
testcase_16 AC 70 ms
71,120 KB
testcase_17 AC 69 ms
70,892 KB
testcase_18 AC 69 ms
70,936 KB
testcase_19 AC 69 ms
70,928 KB
testcase_20 AC 67 ms
70,884 KB
testcase_21 AC 68 ms
70,916 KB
testcase_22 AC 69 ms
71,148 KB
testcase_23 AC 71 ms
70,840 KB
testcase_24 AC 69 ms
71,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

k = int(input())
p = 10**9+7
x = pow(2, k, p-1)

ans = pow(a, x, p)*pow(b, x, p)*pow(c, x, p)
print(ans % p)
0