THU_ACMER @ 2024-01-13 21:21:43
lst=[]
for i in range(l+1):
lst.append(i)
for i in range(m):
a,b=map(int,input().split())
for i in range(a,b+1):
if i in lst:
lst.remove(i)
print(len(lst))
by Lovely_Doggie @ 2024-01-13 21:23:37
@THU_ACMER 代码放错了吧?全部RE了
by Lovely_Doggie @ 2024-01-13 21:24:25
而且没看到你交过呀。。。
by THU_ACMER @ 2024-01-13 22:21:53
@Lovley_Doggie
lst=[]
for i in range(l+1):
lst.append(i)
for i in range(m):
a,b=map(int,input().split())
for i in range(a,b+1):
if i in lst:
lst.remove(i)
print(len(lst))
by THU_ACMER @ 2024-01-13 22:22:36
@Lovley_Doggie 50分,之前复制错了