Submission #869676

#TimeUsernameProblemLanguageResultExecution timeMemory
869676Hoang_CoderBaloni (COCI15_baloni)Cpython 3
0 / 100
2076 ms108532 KiB
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 timeMemoryGrader output
Fetching results...