#945
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++ | 0ms | 1216KB | 1001B | |
| 8556 | 🥈 | 고수아 | Python | 7ms | 8252KB | 141B | |
| 8348 | 🥉 | Undefined | Python | 7ms | 8360KB | 310B | |
| 6134 | 4 | 최정민 | Python | 8ms | 8144KB | 178B | |
| 6039 | 5 | 조선우 | Python | 8ms | 8156KB | 139B | |
| 6153 | 6 | 이채환 | Python | 8ms | 8332KB | 208B | |
| 8401 | 7 | 이혁준 | Python | 8ms | 8460KB | 162B | |
| 6541 | 8 | 천재영 | Python | 8ms | 8512KB | 168B | |
| 6041 | 9 | 박동재 | PyPy | 23ms | 50132KB | 294B |
난이도 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
| # | 사용자 | 문제 | 결과 | 언어 | 시간 | 메모리 | 코드 길이 | 제출 시간 | |
|---|---|---|---|---|---|---|---|---|---|
| 8774 | 맞았습니다 | C++ | 0ms | 1216KB | 1001B | 2026. 06. 05. 08:28 | |||
| 8556 | 맞았습니다 | Python | 7ms | 8252KB | 141B | 2026. 05. 29. 07:43 | |||
| 8555 | 틀렸습니다 | Python | - | - | 139B | 2026. 05. 29. 07:42 | |||
| 8554 | 틀렸습니다 | Python | - | - | 139B | 2026. 05. 29. 07:42 | |||
| 8401 | 맞았습니다 | Python | 8ms | 8460KB | 162B | 2026. 05. 26. 06:42 | |||
| 8348 | 맞았습니다 | Python | 7ms | 8360KB | 310B | 2026. 05. 26. 02:07 | |||
| 6541 | 맞았습니다 | Python | 8ms | 8512KB | 168B | 2026. 05. 20. 17:01 | |||
| 6153 | 맞았습니다 | Python | 8ms | 8332KB | 208B | 2026. 05. 12. 07:31 | |||
| 6134 | 맞았습니다 | Python | 8ms | 8144KB | 178B | 2026. 05. 12. 04:51 | |||
| 6133 | 틀렸습니다 | Python | - | - | 177B | 2026. 05. 12. 04:51 | |||
| 6041 | 맞았습니다 | PyPy | 23ms | 50132KB | 294B | 2026. 05. 07. 07:52 | |||
| 6039 | 맞았습니다 | Python | 8ms | 8156KB | 139B | 2026. 05. 07. 07:44 |