Run ID:70843

提交时间:2024-04-20 10:35:52

L,M = map(int,input().split()) a = [l] * (L + 1) for i in range (M): l,r = map(int,input().split()) for j in range (l,r + 1): if a[j] == 1: a[j] == 0 print(sum(a))