結果

問題 No.1096 Range Sums
ユーザー ytftytft
提出日時 2021-05-06 11:27:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 109 bytes
コンパイル時間 377 ms
コンパイル使用メモリ 86,644 KB
実行使用メモリ 104,632 KB
最終ジャッジ日時 2023-10-12 04:36:14
合計ジャッジ時間 2,555 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,056 KB
testcase_01 AC 75 ms
70,908 KB
testcase_02 AC 80 ms
71,180 KB
testcase_03 AC 75 ms
71,012 KB
testcase_04 AC 76 ms
70,804 KB
testcase_05 AC 77 ms
70,948 KB
testcase_06 AC 75 ms
71,192 KB
testcase_07 AC 75 ms
71,316 KB
testcase_08 AC 75 ms
70,924 KB
testcase_09 AC 76 ms
71,036 KB
testcase_10 AC 112 ms
104,340 KB
testcase_11 AC 111 ms
104,476 KB
testcase_12 AC 112 ms
104,320 KB
testcase_13 AC 113 ms
104,544 KB
testcase_14 AC 114 ms
104,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
ans=0
for i in range(N):
    ans+=A[i]*(N-i)*(i+1)
print(ans)
0