지나가던 개발자
[Python] 백준 11536번(줄 세우기) 문제 풀이 본문
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")
'PS > Python' 카테고리의 다른 글
[Python] 백준 12605번(단어순서 뒤집기) 문제 풀이 (0) | 2022.11.14 |
---|---|
[Python] 백준 10384번(팬그램) 문제 풀이 (0) | 2022.11.14 |
[Python] 백준 25206번(너의 평점은) 문제 풀이 (0) | 2022.11.13 |
[Python] 백준 5637번(가장 긴 단어) 문제 풀이 (0) | 2022.11.12 |
[Python] 17176번(암호해독기) 문제 풀이 (0) | 2022.11.11 |
Comments