# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
869676 | Hoang_Coder | Baloni (COCI15_baloni) | Cpython 3 | 2076 ms | 108532 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
n = int(input())
inps = [int(x) for x in input().split()]
kq = []
def constang(array):
ls = [array[0]]
nn = array[0]
for i in range(len(array)):
if nn <= array[i]:
ls.append(array[i])
nn = array[i]
return ls
cjd = []
for j in range(len(inps)):
kq.append(constang(inps[j:]))
for i in kq:
cjd.append(len(i))
print(max(cjd))
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |