1
2
3
4
5
6
7
8
9
10
|
n=int(input())
tmp=list(map(int, input().split()))
cnt=0
for i in range(n):
tmpcnt=0
for j in range(i+1,n):
if tmp[i]>tmp[j] : tmpcnt+=1
else: break
cnt=max(cnt,tmpcnt)
print(cnt)
|
cs |
pypy ㅠㅠ
반응형
'python-algorithm' 카테고리의 다른 글
[백준] 14710 (0) | 2021.01.15 |
---|---|
[백준] 14697 (0) | 2021.01.15 |
[백준] 14624 (0) | 2021.01.14 |
[백준] 14593 (0) | 2021.01.14 |
[백준] 14581 (0) | 2021.01.14 |
댓글