結果
| 問題 | 
                            No.1096 Range Sums
                             | 
                    
| コンテスト | |
| ユーザー | 
                             futago0118
                         | 
                    
| 提出日時 | 2020-07-16 23:22:22 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 165 ms / 2,000 ms | 
| コード長 | 126 bytes | 
| コンパイル時間 | 308 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 23,192 KB | 
| 最終ジャッジ日時 | 2024-11-25 20:57:52 | 
| 合計ジャッジ時間 | 2,505 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
n = int(input())
A = [int(x) for x in input().split()]
ans = 0
for i in range(n):
    ans += A[i]*(i+1)*(n-i)
    
print(ans)
            
            
            
        
            
futago0118