#945
Bronze IV
NOTE
시간 제한
1s
메모리 제한
32MB
제출
14
정답
11
맞힌 사람
11
정답 비율
78.6%

문제

Author: Marko Ivanković C major scale consists of 8 tones: c d e f g a h C. For this task we number the notes using numbers 1 through 8. The scale can be played ascending, from 1 to 8, descending, from 8 to 1, or mixed. Write a program that, given the sequence of notes, determines wether the scale was played ascending, descending or mixed.

입력

First and only line of input will contain 8 integers, from 1 to 8 inclusive. Each integer will appear exactley once in the input.

출력

In the first and only line of input print "descending" if the scale was played descending, "ascending" if the scale was played ascending and "mixed" if the scale was played mixed.

예제 입력 1

1 2 3 4 5 6 7 8

예제 출력 1

ascending

예제 입력 2

8 7 6 5 4 3 2 1

예제 출력 2

descending

예제 입력 3

8 1 7 2 6 3 5 4

예제 출력 3

mixed
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
#순위사용자언어시간메모리코드 길이
8774🥇
박준혁
C++0ms1216KB1001B
8556🥈
고수아
Python7ms8252KB141B
8348🥉
Undefined
Python7ms8360KB310B
93314
서준
Python7ms8392KB202B
61345
최정민
Python8ms8144KB178B
60396
조선우
Python8ms8156KB139B
61537
이채환
Python8ms8332KB208B
84018
이혁준
Python8ms8460KB162B
65419
천재영
Python8ms8512KB168B
887410
안우진
PyPy22ms49792KB82B
604111
박동재
PyPy23ms50132KB294B
난이도 투표
Bronze IV3명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
9331
맞았습니다
Python7ms8392KB202B2026. 07. 06. 12:55
8874
맞았습니다
PyPy22ms49792KB82B2026. 06. 08. 07:16
8774
맞았습니다
C++0ms1216KB1001B2026. 06. 05. 08:28
8556
맞았습니다
Python7ms8252KB141B2026. 05. 29. 07:43
8555
틀렸습니다
Python--139B2026. 05. 29. 07:42
8554
틀렸습니다
Python--139B2026. 05. 29. 07:42
8401
맞았습니다
Python8ms8460KB162B2026. 05. 26. 06:42
8348
맞았습니다
Python7ms8360KB310B2026. 05. 26. 02:07
6541
맞았습니다
Python8ms8512KB168B2026. 05. 20. 17:01
6153
맞았습니다
Python8ms8332KB208B2026. 05. 12. 07:31
6134
맞았습니다
Python8ms8144KB178B2026. 05. 12. 04:51
6133
틀렸습니다
Python--177B2026. 05. 12. 04:51
6041
맞았습니다
PyPy23ms50132KB294B2026. 05. 07. 07:52
6039
맞았습니다
Python8ms8156KB139B2026. 05. 07. 07:44