Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 알고리즘
- AndroidStudio
- 코테
- cos pro 1급
- DFS
- Python
- DFS와BFS
- django
- Algorithm
- 개발
- BAEKJOON
- 동적계획법
- DART
- Vue
- codingtest
- cos pro
- vuejs
- Flutter
- android
- C++
- 백준
- 분할정복
- 파이썬
- 안드로이드스튜디오
- cos
- 동적계획법과최단거리역추적
- 코드품앗이
- 안드로이드
- issue
- 코딩테스트
Archives
- Today
- Total
목록cos 1급 2차 7번 python (1)
Development Artist
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cxeiyL/btrukglUX5C/kHFJdyVKaqpkfpQj63Lyp0/img.png)
문제 유형 빈칸 난이도 normal Note 1. Greedy 알고리즘 Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean # 2차 7번 def solution(money): coin = [10, 50, 100, 500, 1000, 5000, 10000, 50000] counter = 0 idx = len(coin) - 1 while money: counter += money // coin[idx] money %= coin[idx] idx -= 1 return counter money = 2760 ret = solution(money) print("solution 함수의 반환 값은", ret, "입니다.") ※ 가끔 코드 중 print(~)가..
Algorithm/COS
2022. 2. 25. 10:26