結果
| 問題 | 
                            No.1096 Range Sums
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ttr
                         | 
                    
| 提出日時 | 2020-06-26 21:45:33 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 250 ms / 2,000 ms | 
| コード長 | 162 bytes | 
| コンパイル時間 | 230 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 23,204 KB | 
| 最終ジャッジ日時 | 2024-07-04 21:40:34 | 
| 合計ジャッジ時間 | 2,565 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
N = int(input())
A = [int(a) for a in input().split()]
from decimal import *
ans = Decimal(0)
for i in range(N):
    ans += Decimal(A[i]*(i+1)*(N-i))
print(ans)
            
            
            
        
            
ttr