Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

codeforces problem 580A

# problem: https://codeforces.com/problemset/problem/580/A
n = int(input())
m = 1
count = 1
seq = list(map(int, input().split()))
for i in range(n - 1):
    if seq[i] <= seq[i + 1]:
        count += 1
    else:
        m = max(m, count)
        count = 1
m = max(m, count)
print(m)
Comment

PREVIOUS NEXT
Code Example
Python :: python __truediv__ 
Python :: __sub__ 
Python :: Python __truediv__ magic method 
Python :: Python __ne__ magic method 
Python :: palindrome rearrange 
Python :: NumPy rot90 Example Rotating Three times 
Python :: Open S3 object as string in Python 3 
Python :: python multiply function with return keyword 
Python :: NumPy bitwise_or Syntax 
Python :: NumPy unpackbits Code Unpacked array along axis 1 
Python :: tikzplotlib set figure 
Python :: qlcdnumber set value 
Python :: fibo_itrativ 
Python :: green book résumé 
Python :: Double all numbers using a map() and Lamda Function 
Python :: knn compute_distances_no_loop 
Python :: rasa emotion bot 
Python :: genisim 4.0 words 
Python :: python flask many to many relation db 
Python :: update table odoo13 
Python :: Redirect to the same page and display a message if user insert wrong data 
Python :: Express + Jade : Ensuring url paths are correct via controllers, orphaned links 
Python :: python static 
Python :: ring Insert Items in list 
Python :: ring The For Loops uses the local scope 
Python :: how to dynamically append value in a list in python 
Python :: SimpleITK interpolation 
Python :: how to add illegal characters to paths python 
Python :: python save base64 temp file 
Python :: where are dictd dictionaries 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =