Algorithm/Softeer
[Softeer - level2] 8๋จ ๋ณ์๊ธฐ
hello_u
2023. 7. 25. 09:12
import sys
arr = list(map(int,input().split()))
asc = list(range(1,9))
desc = list(range(8,0,-1))
result = ""
if arr==asc:
result = "ascending"
elif arr==desc:
result = "descending"
else:
result = "mixed"
print(result)