結果
問題 |
No.1096 Range Sums
|
ユーザー |
|
提出日時 | 2020-06-26 21:35:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 23,464 KB |
最終ジャッジ日時 | 2024-07-04 21:36:56 |
合計ジャッジ時間 | 2,289 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 12 |
ソースコード
N = int(input()) A = tuple(map(int, input().split())) T = [N] * N for i in range(N // 2): T[i + 1] = T[i] + N - (i + 1) * 2 T[N - i - 2] = T[i + 1] print(T) print(sum(A[i] * T[i] for i in range(N)) % (10 ** 9 + 7))