Programming/Python & Data Structures
[Baekjoon/Python3] 2920번 음계
HooNeee
2020. 12. 4. 17:10
inp = list(map(int, input().split()))
if inp == sorted(inp):
print('ascending')
elif inp == sorted(inp, reverse=True):
print('descending')
else:
print('mixed')
[Baekjoon/Python3] 2920번 음계
2920번: 음계
다장조는 c d e f g a b C, 총 8개 음으로 이루어져있다. 이 문제에서 8개 음은 다음과 같이 숫자로 바꾸어 표현한다. c는 1로, d는 2로, ..., C를 8로 바꾼다. 1부터 8까지 차례대로 연주한다면 ascending, 8
www.acmicpc.net