Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78284 小徐老师 校门外的树 Python3 Accepted 2678 MS 4136 KB 300 2024-06-16 21:03:26

Tests(10/10):


Code:

a = [int(i) for i in input().split()] e = [] for i in range(a[0] + 1): e.append(i) for i in range(a[1]): start,end = [int(i) for i in input().split()] for j in range(start,end+1): try: e.remove(j) except: continue print(len(e))