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 | 31 |
Tags
- 퀵정렬
- 자료구조
- 선택알고리즘
- 기수정렬
- 버블정렬
- 선택정렬
- 안드로이드
- 동적프로그래밍
- 자바
- SNS
- Median of Medians
- 정렬
- 프로그래밍
- 백준
- 수학
- java
- 정수론
- 알고리즘
- 백트래킹
- 병합정렬
- 코딩테스트
- 다이나믹프로그래밍
- 재귀
- DP
- 삽입정렬
- C++
- 프로그래밍언어
- 동적계획법
- 힙정렬
- 계수정렬
Archives
- Today
- Total
목록큐 (1)
MODE::CREATIVE
[백준][c++] 1966번: 프린터 큐
https://www.acmicpc.net/problem/1966 문제 해석큐를 이용한 우선순위 구하기알고리즘 분류자료구조큐풀이순서(num)와 우선순위(prioty)를 가진 class를 큐에 저장하고순회하며 제일 우선순위가 큰지 검사코드#include #include #include #include #include #include using namespace std;int n, m, t;class Num {public: int num; int prioty; Num(int a, int b) : num(a), prioty(b){}; };void solution() { cin >> n >> m; queue q; for (int i=0; i> prioty; q.p..
BOJ
2024. 10. 2. 15:50