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
- 스택
- 브루트포스
- 다이나믹 프로그래밍
- dict
- DP
- N과M
- 재귀
- python
- 가상메모리
- level3
- 코딩테스트
- 그리디
- 힙
- 가상메모리 관리
- level2
- 프로그래머스
- 파이썬
- 구현
- programmers
- BOJ
- 딕셔너리
- 백준
- 다익스트라
- MYSQL
- dfs
- BFS
- 수학
- level0
- 운영체제
Archives
- Today
- Total
목록11047 (1)
동캄의 코딩도장
백준 11047 [동전 0] 파이썬
https://www.acmicpc.net/problem/11047 11047번: 동전 0 첫째 줄에 N과 K가 주어진다. (1 ≤ N ≤ 10, 1 ≤ K ≤ 100,000,000) 둘째 줄부터 N개의 줄에 동전의 가치 Ai가 오름차순으로 주어진다. (1 ≤ Ai ≤ 1,000,000, A1 = 1, i ≥ 2인 경우에 Ai는 Ai-1의 배수) www.acmicpc.net import sys input = sys.stdin.readline N, K = map(int, input().split()) lst = [] i = 0 answer = 0 for _ in range(N): lst.append(int(input())) lst.reverse() while K != 0 and i < len(lst): i..
코테/BOJ
2022. 2. 10. 18:44