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 |
Tags
- 백준 1049번
- C++ 문자열
- 월곡동 학원추천
- 백준 1049번 기타줄
- 월곡역 학원
- 운영체제
- 월곡중학교 학원추천
- 백준 9375번 패션왕 신해빈
- 백준 K보다 큰 구간
- 상월곡역 학원
- 백준 14246번 K보다 큰 구간
- 백준 10709
- C++ 9996
- 고정 소수점
- OS
- 상월곡동 학원
- 관리형 학원
- 백준 패션왕 신해빈
- 서울사대부고 학원
- 성북구 학원
- 월곡중 학원
- 백준 dfs
- 백준 2309번 일곱 난쟁이
- c++ split
- 백준 토마토
- 백준 한국이 그리울 땐 서버에 접속하지
- c++ 조합
- C# 병합정렬
- DFS
- 백준 14246번
Archives
- Today
- Total
목록백준 1049번 기타줄 (1)
키베이루's diary
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bNL7Oi/btrOQgs8r1Q/E0BdKqO8YVJqXqJLclvqSK/img.png)
1) 문제설명 2) 아이디어 상점에서 파는 기타 줄의 패키지와 낱개의 개수가 제한이 없으므로 패키지 또는 낱개의 가격이 가장 저렴한 것만 구입을 한다고 생각하면 쉽게 풀린다. 3) 코드 #include #include #include #include #include #include #include #include using namespace std; int n, m; int result, temp; int arr[10001], brr[10001]; int main() { cin >> n >> m; for (int i = 0; i > arr[i] >> brr[i]; } sort(arr, arr + m, less()); sort(brr, brr + m, less()); // 패..
알고리즘/Greedy
2022. 10. 17. 13:22