일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 백준 2447
- heap
- 게리멘더링2
- 구현
- 해시 구현
- ㅣ풀이
- 원판 돌리기
- 백준 1406
- 버킷 정렬
- 백준
- AVL 시간 복잡도
- 백준 17779
- 백준 5397
- 해시구현
- 시간 복잡도
- 별 찍기 10
- Stack 이란
- dfs
- 백준 17471
- 자료구조
- 조세퍼스 순열
- 백준 17822
- 스택의 특징
- 백준 1158
- c#
- 1764
- qorwns
- 풀이
- C/C++ 구현
- 5397
- Today
- Total
목록알고리즘 문제풀이/백준 (178)
홍시홍의 프로그래밍
요구사항 구간 중 주어진 배열은 포함되지 않고 k는 포함된 구간은 몇개인지 출력 풀이 문제 예시가 빈약한 듯 하다 [a, b] 구간 중 k가 포함 되기 위해서는 a =k를 만족하여야 한다. #include #include using namespace std; int n; int map[51]; int target; int main() { int minv = 0; int maxv = 0; int flag = 0; int flagget = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &map[i]); } scanf("%d", &target); sort(map, map + n); minv = 1; maxv = map[0]; for (int i ..
요구사항 1. 최소의 봉지 개 수로 설탕을 이동 시켜라 풀이 1. 주어지는 숫자 n을 5*i와 3*j의 조합으로 만들어 낸다 2. i+j가 최소인게 답이다 #include #include #include #include #include using namespace std; priority_queue q; int n, m; vector v; int main() { scanf("%d", &n); int max5 = 987654321; int max3 = 0; int flag = 0; int input = n; int Box = 0; for (int i = 0; i
요구사항 X보다 작은 수 출력 풀이 1. X를 입력받는다 2. n가지 숫자 입력 받을때, x보다 작으면 출력 #include #include #include #include #include using namespace std; priority_queue q; int n, m; vector v; int main() { scanf("%d%d", &n,&m); for (int i = 0; i < n; i++) { int x; scanf("%d", &x); if (x < m) printf("%d ", x); } }