結果

問題 No.1096 Range Sums
ユーザー 👑 KazunKazun
提出日時 2020-06-26 22:01:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 320 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 104,824 KB
最終ジャッジ日時 2023-09-18 05:12:57
合計ジャッジ時間 2,454 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,248 KB
testcase_01 AC 73 ms
71,200 KB
testcase_02 AC 75 ms
71,268 KB
testcase_03 AC 73 ms
71,208 KB
testcase_04 AC 73 ms
71,248 KB
testcase_05 AC 73 ms
71,140 KB
testcase_06 AC 73 ms
71,288 KB
testcase_07 AC 73 ms
71,252 KB
testcase_08 AC 73 ms
71,208 KB
testcase_09 AC 73 ms
71,136 KB
testcase_10 AC 113 ms
104,824 KB
testcase_11 AC 111 ms
104,576 KB
testcase_12 AC 112 ms
104,448 KB
testcase_13 AC 111 ms
104,788 KB
testcase_14 AC 111 ms
104,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))

S=0
T=0
d=N
for i in range(N):
    S+=A[i]*(i+1)*(N-i)
print(S)
0