結果

問題 No.1096 Range Sums
ユーザー 👑 H20H20
提出日時 2021-07-02 15:52:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 119,008 KB
最終ジャッジ日時 2023-09-11 11:14:06
合計ジャッジ時間 3,078 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,256 KB
testcase_01 AC 73 ms
71,132 KB
testcase_02 AC 72 ms
71,252 KB
testcase_03 AC 73 ms
71,100 KB
testcase_04 AC 75 ms
71,248 KB
testcase_05 AC 75 ms
71,416 KB
testcase_06 AC 74 ms
71,272 KB
testcase_07 AC 75 ms
71,320 KB
testcase_08 AC 75 ms
71,256 KB
testcase_09 AC 73 ms
71,420 KB
testcase_10 AC 123 ms
119,008 KB
testcase_11 AC 123 ms
118,804 KB
testcase_12 AC 121 ms
119,000 KB
testcase_13 AC 123 ms
118,808 KB
testcase_14 AC 123 ms
118,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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