Answers for "Maximum number of guests on cruise at an instance tcs"

0

Maximum number of guests on cruise at an instance tcs

#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))
Posted by: Guest on October-15-2021

Code answers related to "Maximum number of guests on cruise at an instance tcs"

Python Answers by Framework

Browse Popular Code Answers by Language