結果

問題 No.1578 A × B × C
ユーザー brthyyjpbrthyyjp
提出日時 2021-07-02 21:31:41
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 86,668 KB
実行使用メモリ 71,276 KB
最終ジャッジ日時 2023-09-11 21:20:17
合計ジャッジ時間 3,157 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,200 KB
testcase_01 AC 68 ms
71,084 KB
testcase_02 AC 66 ms
70,976 KB
testcase_03 AC 68 ms
71,092 KB
testcase_04 AC 67 ms
70,772 KB
testcase_05 AC 69 ms
70,984 KB
testcase_06 AC 69 ms
71,256 KB
testcase_07 AC 68 ms
71,276 KB
testcase_08 AC 70 ms
71,144 KB
testcase_09 AC 68 ms
70,924 KB
testcase_10 AC 68 ms
71,220 KB
testcase_11 AC 68 ms
71,124 KB
testcase_12 AC 67 ms
71,064 KB
testcase_13 AC 69 ms
71,044 KB
testcase_14 AC 66 ms
70,988 KB
testcase_15 AC 70 ms
71,100 KB
testcase_16 AC 67 ms
71,168 KB
testcase_17 AC 67 ms
70,964 KB
testcase_18 AC 69 ms
71,200 KB
testcase_19 AC 68 ms
71,232 KB
testcase_20 AC 69 ms
70,900 KB
testcase_21 AC 68 ms
71,144 KB
testcase_22 AC 68 ms
71,204 KB
testcase_23 AC 67 ms
70,848 KB
testcase_24 AC 67 ms
70,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c = map(int, input().split())
k = int(input())
mod = 10**9+7
x = (a*b*c)%mod
if x == 0:
    print(0)
    exit()
y = pow(2, k, mod-1)
ans = pow(x, y, mod)
print(ans)
0