結果
| 問題 | No.789 範囲の合計 |
| コンテスト | |
| ユーザー |
x2357
|
| 提出日時 | 2019-02-17 16:01:47 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 39,900 KB |
| 最終ジャッジ日時 | 2026-04-12 15:29:21 |
| 合計ジャッジ時間 | 3,408 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
x2357