728x90
https://www.acmicpc.net/problem/2920
728x90
num = list(map(int, input().split()))
asc = [1, 2, 3, 4, 5, 6, 7, 8]
de = [8, 7, 6, 5, 4, 3, 2, 1]
if (num == asc):
print('ascending')
elif (num == de):
print('descending')
else:
print('mixed')
728x90
'Problem Solving > BOJ' 카테고리의 다른 글
[백준, BOJ 9020] 골드바흐의 추측 (python) (0) | 2021.05.10 |
---|---|
[백준, BOJ 2747] 피보나치 수 (python) (0) | 2021.05.10 |
[백준, BOJ 2750] 수 정렬하기 (python) (0) | 2021.05.10 |
[백준, BOJ 10828] 스택 (python) (0) | 2021.05.09 |
[백준, BOJ 9012] 괄호 (python) (0) | 2021.05.09 |