지나가던 개발자

[Python] 백준 11536번(줄 세우기) 문제 풀이 본문

PS/Python

[Python] 백준 11536번(줄 세우기) 문제 풀이

KwonYongHyeon 2022. 11. 14. 18:17

 

names = []
for i in range(int(input())):
    names.append(input())
    
if sorted(names) == names:
    print("INCREASING")
elif sorted(names, reverse=True) == names:
    print("DECREASING")
else:
    print("NEITHER")
Comments