📜  在一个实例 tcs 上巡航的最大客人数量 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:55.542000             🧑  作者: Mango

代码示例1
#Maximum number of guests on cruise at an instance tcs

N = int(input())
tg = 0
Total= []
for i in range(N):
  en = int(input())
  le = int(input())
  dif = en-le
  tg = tg + dif
  Total.append(tg)
print(max(Total))