結果
問題 |
No.1096 Range Sums
|
ユーザー |
![]() |
提出日時 | 2020-07-16 22:47:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
MLE
|
実行時間 | - |
コード長 | 208 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 818,108 KB |
最終ジャッジ日時 | 2024-11-25 10:29:41 |
合計ジャッジ時間 | 10,403 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 MLE * 5 |
ソースコード
import itertools n = int(input()) N = [int(x) for x in range(0,n)] A = [int(x) for x in input().split()] ans = sum(A) C = list(itertools.combinations(N,2)) for i,j in C: ans += sum(A[i:j+1]) print(ans)