Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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))
Comment

PREVIOUS NEXT
Code Example
Python :: python classmethod property 
Python :: obspy stats 
Python :: (Word or Phrase to Phone-Number Generator) python 
Python :: how to search on wikipedia with python and speak the result 
Python :: jupiter output 
Python :: python read file to eof 
Python :: korozif 
Python :: Finding the Sum of a Symmetrical Sub-List 
Python :: keep only min entries in dataframe grouped by one column 
Python :: unhexing floats 
Python :: odd or even checker 
Python :: take input from clipboard python 
Python :: Arduino - Send Commands with Serial Communication with python 
Python :: python get next item from generator 
Python :: how to import the whall library in python 
Python :: how do i select a range of columns by index 
Python :: .lowertkinter 
Python :: python to pseudo code converter 
Python :: python convert string to raw string 
Python :: default arguments 
Python :: odd and even python 
Python :: join paths in python 
Python :: youtube download in python 
Python :: python interpreter 
Python :: python set union 
Python :: rotate 2 dimensional list python 
Python :: sum of the number in a list in python 
Python :: corpus 
Python :: update all modules python 
Python :: if else statement python one line 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =