結果

問題 No.1084 積の積
ユーザー tyawanmusityawanmusi
提出日時 2019-11-25 23:03:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 18,792 KB
最終ジャッジ日時 2023-09-07 18:57:57
合計ジャッジ時間 9,134 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,772 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,956 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 158 ms
10,064 KB
testcase_06 AC 197 ms
9,956 KB
testcase_07 AC 16 ms
7,860 KB
testcase_08 AC 16 ms
7,860 KB
testcase_09 AC 380 ms
18,104 KB
testcase_10 AC 15 ms
7,812 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
ans=1
mod=10**9+7
for i in range(n):
  ans*=pow(a[i],(i+1)*(n-i),mod)
  ans%=mod
print(ans)
0