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 |
Tags
- level1
- 백준
- IntelliJ
- 최대공약수
- 짝수
- 프로젝트 생성
- 알고리즘
- 홀수
- IaaS
- 온프레미스
- INT
- 11004
- 11652
- PaaS
- SaaS
- 웹 서버
- 자료형
- 프로그래머스
- 문자열 숫자 변환
- 데이터타입
- 리스트
- aws
- parseInt
- Python
- 2진수
- valueof
- algorithm
- 유클리드 호제법
- java
- 최대공배수
Archives
- Today
- Total
Ga0Lee
[알고리즘] K번째 수 백준 11004 (Python) 본문
코드
import sys
n, k = map(int, input().split())
arr = list(map(int,input().split()))
arr.sort()
print(arr[k-1])
입출력

'Algorithm' 카테고리의 다른 글
[알고리즘] 괄호 백준 9012 (Python) (0) | 2022.01.14 |
---|---|
[알고리즘] 스택 백준 10828 (Python) (0) | 2022.01.14 |
[알고리즘] 카드 백준 11652 (Python) (0) | 2022.01.14 |
[알고리즘] 2 x N 타일링2 백준11727 (Python) (0) | 2022.01.12 |
[알고리즘] 2xn 타일링 백준 11726 (Python) (0) | 2022.01.12 |