| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 78195 | 胡海峰老师 | 校门外的树 | Python3 | Accepted | 64 MS | 3848 KB | 287 | 2024-06-16 17:00:45 |
""" 500 3 150 300 100 200 470 471 """ a,b = input().split() a,b = int(a),int(b) trees = [True for x in range(a+1)] for block in range(b): start,end = map(int,input().split()) for x in range(start,end+1): trees[x] = False res = trees.count(True) print(res)