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
- cs
- 너비우선탐색
- 컴공과
- 코딩
- 구현
- Operating System
- OS
- 오에스
- 정석
- DP
- 개발
- 스택
- coding
- 컴퓨터공학과
- 알고리즘
- Computer science
- 오퍼레이팅시스템
- 북리뷰
- 컴공
- 코테
- 그래프
- 브루트포스
- c++
- vector
- bfs
- 백준
- 문제풀이
- 자료구조
- 정석학술정보관
- Stack
Archives
- Today
- Total
목록자로구조 (1)
Little Jay
[C++] 백준 11047번 동전 0
#include #include #include using namespace std; int main() { int n, money; cin >> n >> money; int temp = 0; int x; vector v; for (int i = 0; i > x; v.push_back(x); } sort(v.begin(), v.end()); while (n--) { int coin = v[n]; if (money - coin >= 0) { while (money - coin >= 0) { money -= coin; temp++; } } } cout
알고리즘/BOJ
2021. 8. 2. 18:03