#945
Bronze V
NOTE
시간 제한
1s
메모리 제한
32MB
제출
12
정답
9
맞힌 사람
9
정답 비율
75.0%

문제

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
61344
최정민
Python8ms8144KB178B
60395
조선우
Python8ms8156KB139B
61536
이채환
Python8ms8332KB208B
84017
이혁준
Python8ms8460KB162B
65418
천재영
Python8ms8512KB168B
60419
박동재
PyPy23ms50132KB294B
난이도 투표
Bronze V2명 투표· 25일 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
#사용자문제결과언어시간메모리코드 길이제출 시간
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