Run ID:70844
提交时间:2024-04-20 10:36:39
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))