반응형
https://www.acmicpc.net/problem/2920
# @Author YoungMinKim
# baekjoon
a= list(map(int,input().split()))
ascending = sorted(a)
descending = sorted(a,reverse=True)
if a== ascending:
print('ascending')
elif a == descending:
print('descending')
else:
print('mixed')
반응형
'백준 문제풀이' 카테고리의 다른 글
baekjoon - python - 2998 (0) | 2020.08.26 |
---|---|
baekjoon - python - 2935 (0) | 2020.08.26 |
baekjoon - python - 2914 (0) | 2020.08.26 |
baekjoon - python - 2908 (0) | 2020.08.26 |
baekjoon - python - 2884 (0) | 2020.08.26 |
댓글