結果
問題 |
No.789 範囲の合計
|
ユーザー |
![]() |
提出日時 | 2019-02-17 16:01:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 36,896 KB |
最終ジャッジ日時 | 2024-09-25 10:59:02 |
合計ジャッジ時間 | 2,934 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 12 |
ソースコード
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: ans += sum([j[2] for j in q[:q.index(i)] if j[0] == 0 and i[1]<=j[1]<=i[2]]) print(ans)