Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131511 王亦鸣 校门外的树 Python3 Wrong Answer 66 MS 3988 KB 184 2025-09-27 14:13:44

Tests(1/10):


Code:

n,m = input().split() n,m = int(n),int(m) trees = [1]*(n+1) for _ in range(m): a,b = input().split() a,b = int(a),int(b) trees[a:b+1] = [0]*(b-a) print(sum(trees))


Run Info:

------Input------
10000 10 123 134 890 1231 1321 3123 3333 4444 9999 10000 8888 9988 4555 4666 5000 6000 8007 8887 6777 8000
------Answer-----
2411
------Your output-----
2415