c언어 1647번 도시 분할 계획 (백준)
#include #define M 1000001 void swap(int *x, int *y) { //swap int tmp = *x; *x = *y; *y = tmp; } typedef struct Node { //node int a; int b; int c; }Node; typedef struct PriorityQueue { //우선순위큐 Node heap[M]; //a b c int cnt; }PriorityQueue; void push(PriorityQueue *q, int a, int b, int data) { //우선순위 큐 push q->heap[q->cnt].a = a; q->heap[q->cnt].b = b; q->heap[q->cnt].c = data; int child = q->cnt..
c언어/BAEKJOON
2023. 3. 25. 00:50
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 스택
- BFS
- DP
- 6198
- Krustal
- C++
- 카드
- 최대공약수
- 최소 스패닝 트리
- 트리
- 누적 합
- find
- 덱
- 정렬
- C언어
- 세그먼트 트리
- 그래프
- java
- 오프라인 쿼리
- DFS
- Mo.s
- 1835
- 그리디
- 16120번
- 백준
- union
- 플로이드
- 1835번
- 누적합
- 6198번
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함