#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++1ms1496KB1001B
9331🥈
서준
Python8ms8696KB202B
6153🥉
이채환
Python9ms8676KB208B
60394
조선우
Python11ms8768KB139B
84015
이혁준
Python11ms8948KB162B
65416
천재영
Python11ms8984KB168B
85567
고수아
Python12ms8744KB141B
83488
Undefined
Python12ms9024KB310B
61349
최정민
Python14ms8360KB178B
604110
박동재
PyPy23ms50428KB294B
887411
안우진
PyPy26ms50148KB82B
난이도 투표
Bronze IV3명 투표· 5개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
9331
맞았습니다
Python8ms8696KB202B2026. 07. 06. 12:55
8874
맞았습니다
PyPy26ms50148KB82B2026. 06. 08. 07:16
8774
맞았습니다
C++1ms1496KB1001B2026. 06. 05. 08:28
8556
맞았습니다
Python12ms8744KB141B2026. 05. 29. 07:43
8555
틀렸습니다
Python--139B2026. 05. 29. 07:42
8554
틀렸습니다
Python--139B2026. 05. 29. 07:42
8401
맞았습니다
Python11ms8948KB162B2026. 05. 26. 06:42
8348
맞았습니다
Python12ms9024KB310B2026. 05. 26. 02:07
6541
맞았습니다
Python11ms8984KB168B2026. 05. 20. 17:01
6153
맞았습니다
Python9ms8676KB208B2026. 05. 12. 07:31
6134
맞았습니다
Python14ms8360KB178B2026. 05. 12. 04:51
6133
틀렸습니다
Python--177B2026. 05. 12. 04:51
6041
맞았습니다
PyPy23ms50428KB294B2026. 05. 07. 07:52
6039
맞았습니다
Python11ms8768KB139B2026. 05. 07. 07:44