728x90
반응형
a = input()
if a == '1 2 3 4 5 6 7 8':
print("ascending")
elif a == '8 7 6 5 4 3 2 1':
print ('descending')
else:
print ("mixed")
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 2941번 크로아티아 알파벳(python) (0) | 2020.02.11 |
---|---|
백준 알고리즘 2921번 도미노(python) (0) | 2020.02.11 |
백준 알고리즘 2914번 저작권(python) (0) | 2020.02.11 |
백준 알고리즘 2908번 상수(python) (0) | 2020.02.10 |
백준 알고리즘 2903번 중앙 이동 알고리즘(python) (0) | 2020.02.10 |