1
2
3
4
5
6
7
8
9
|
n=int(input())
tmp=[]
for i in range(n):
tmp.append(input())
tmpD=sorted(tmp,reverse=True)
tmpI=sorted(tmp)
if tmp== tmpD :print("DECREASING")
elif tmp ==tmpI:print("INCREASING")
else: print("NEITHER")
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 3276 ICONS (0) | 2021.12.21 |
---|---|
백준 9625 BABBA (0) | 2021.12.21 |
백준 14729 칠무해 (0) | 2021.12.14 |
백준 11637 인기 투표 (0) | 2021.12.14 |
백준 2435 기상청 인턴 신현수 (0) | 2021.12.14 |
댓글