백준 11047번_동전 0 [python/파이썬]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 import sys num, target = list(map(int,(input().split()))) coin_list = [] for case in range(num): coin_list.append(int(sys.stdin.readline().strip())) total = 0 count = 0 for coin in coin_list[::-1]: if coin > target or coin + total > target: pass else: temp = (target-total)//coin total += temp * coin count += temp if total == target: print(count) br..
알고리즘 문제/백준 - 파이썬
2020. 9. 4. 19:33
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 인사이트
- Redux Thunk
- props를 변경하지 않는 이유
- mkcert
- Hash Router
- 해쉬 라우터
- 리액트 동작원리
- 리덕스 썽크
- contentEditable focus
- 브라우저 라우터
- 우아한테크코스
- React key
- 다라쓰
- 댓글 모듈
- 프론트
- 리액트 리스트 key
- 1463
- 리액트 jsx
- 백준
- 리액트 리스트 키
- localhost https
- Browser Router
- 프론트엔드
- props를 변경하지 못하는 이유
- 우테코
- 리액트 키
- Python
- 파이썬
- 리액트 props
- 리액트 리덕스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함