Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86247 汤弘毅 校门外的树 Python3 Accepted 63 MS 5992 KB 208 2024-07-23 19:55:41

Tests(10/10):


Code:

l,m = map(int,input().split()) street = [1 for x in range(l+1)] for i in range(m): s,f = map(int,input().split()) street = street[:s]+[0 for x in range(f-s+1)]+street[f+1:] print(sum(street))