Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 정렬
- Forensics
- Text
- Python
- 백준
- Database
- cryptography
- Incognito
- Digital Forensics
- N0Named
- 사칙연산
- CTF
- writeup
- 써니나타스
- 그리디 알고리즘
- xcz.kr
- wargame
- MySQL
- php
- SuNiNaTas
- HackCTF
- Web Hacking
- 구현
- 수학
- Network
- 인코그니토
- misc
- Web
- C
- 문자열
Archives
- Today
- Total
보안을 그리다, 훈이
[Baekjoon/Python3] 2920번 음계 본문
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
'Programming > Python & Data Structures' 카테고리의 다른 글
[Baekjoon/Python3] 2941번 크로아티아 알파벳 (0) | 2020.12.04 |
---|---|
[Baekjoon/Python3] 2935번 소음 (0) | 2020.12.04 |
[Baekjoon/Python3] 2914번 저작권 (0) | 2020.12.04 |
[Baekjoon/Python3] 2908번 상수 (0) | 2020.12.04 |
[Baekjoon/Python3] 2902번 KMP는 왜 KMP일까? (0) | 2020.12.04 |
Comments