結果
問題 |
No.789 範囲の合計
|
ユーザー |
![]() |
提出日時 | 2019-02-17 15:46:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 247 bytes |
コンパイル時間 | 99 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 30,464 KB |
最終ジャッジ日時 | 2024-09-25 10:31:06 |
合計ジャッジ時間 | 6,341 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 15 |
ソースコード
n = int(input()) q = [] for i in range(n): b = list(map(int ,input().split())) q.append(b) ans = 0 for i in q: if i[0] == 1: sum([j[2] for j in q if j[0] == 0 and i[1]<=j[1]<=i[2]]) ans += sum(a[i[1]:i[2]+1]) print(ans)