結果

問題 No.1578 A × B × C
ユーザー tassei903tassei903
提出日時 2021-07-02 21:31:11
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 403 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 71,284 KB
最終ジャッジ日時 2023-09-11 21:19:18
合計ジャッジ時間 3,266 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,012 KB
testcase_01 AC 73 ms
70,976 KB
testcase_02 AC 69 ms
71,280 KB
testcase_03 AC 74 ms
70,908 KB
testcase_04 AC 69 ms
70,904 KB
testcase_05 AC 69 ms
70,976 KB
testcase_06 AC 71 ms
70,836 KB
testcase_07 AC 69 ms
71,140 KB
testcase_08 AC 69 ms
71,228 KB
testcase_09 AC 68 ms
70,996 KB
testcase_10 AC 69 ms
70,896 KB
testcase_11 AC 70 ms
71,192 KB
testcase_12 AC 73 ms
70,896 KB
testcase_13 AC 69 ms
71,284 KB
testcase_14 AC 71 ms
70,912 KB
testcase_15 AC 68 ms
70,912 KB
testcase_16 AC 70 ms
71,228 KB
testcase_17 AC 71 ms
70,916 KB
testcase_18 AC 70 ms
70,896 KB
testcase_19 AC 71 ms
71,200 KB
testcase_20 AC 71 ms
70,980 KB
testcase_21 AC 70 ms
71,088 KB
testcase_22 AC 71 ms
70,836 KB
testcase_23 AC 73 ms
70,984 KB
testcase_24 AC 72 ms
71,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
sys.setrecursionlimit(10**7)
yes = lambda :print("yes");Yes = lambda :print("Yes")
no = lambda :print("no");No = lambda :print("No")
#######################################################################
a,b,c = na()
k = ni()
p = 10**9+7
x = a*b*c%p
print(pow(x,pow(2,k,p-1),p))
0