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))
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
33 ms |
3156 KB |
Output isn't correct |
2 |
Incorrect |
101 ms |
3168 KB |
Output isn't correct |
3 |
Incorrect |
395 ms |
3888 KB |
Output isn't correct |
4 |
Incorrect |
560 ms |
4016 KB |
Output isn't correct |
5 |
Execution timed out |
2017 ms |
97192 KB |
Time limit exceeded |
6 |
Execution timed out |
2011 ms |
108532 KB |
Time limit exceeded |
7 |
Execution timed out |
2076 ms |
86012 KB |
Time limit exceeded |
8 |
Execution timed out |
2024 ms |
85184 KB |
Time limit exceeded |
9 |
Execution timed out |
2023 ms |
92672 KB |
Time limit exceeded |
10 |
Execution timed out |
2054 ms |
94388 KB |
Time limit exceeded |