Horje
Maximum number of guests on cruise at an instance tcs Code Example
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))




Python

Related
list images in directory python Code Example list images in directory python Code Example
why are my static files not loading in django Code Example why are my static files not loading in django Code Example
filtering certain rows in python that contains a part of string Code Example filtering certain rows in python that contains a part of string Code Example
space separated dictionary input in python Code Example space separated dictionary input in python Code Example
type operator in python Code Example type operator in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8