Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
55539 wangchenglin 校门外的树 Python3 Compile Error 0 MS 0 KB 195 2024-11-08 12:01:56

Tests(0/0):


L, M = map(int, input().split()) remaining_trees = L + 1 for _ in range(M): start, end = map(int, input().split()) remaining_trees -= (end - start + 1) print(remaining_trees)


Judgement Protocol: