結果

問題 No.1081 和の和
ユーザー tanon710
提出日時 2020-06-19 21:41:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 53,948 KB
最終ジャッジ日時 2024-07-03 14:10:09
合計ジャッジ時間 1,055 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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