일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- BFS
- back propagation
- 문자열
- 2023
- lazy propagation
- 자바스크립트
- 회고록
- 우선 순위 큐
- c++
- 플로이드 와샬
- 미래는_현재와_과거로
- dfs
- 알고리즘
- DP
- 분할 정복
- 너비 우선 탐색
- tensorflow
- 가끔은_말로
- 조합론
- dropout
- 세그먼트 트리
- 크루스칼
- object detection
- 다익스트라
- 가끔은 말로
- 백트래킹
- NEXT
- Overfitting
- 이분 탐색
- pytorch
Archives
- Today
- Total
목록최대 힙 (1)
Doby's Lab

[틀렸던 코드] #include #include #include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector arr; vector answer; for (int i = 0; i > idx; if (idx == 0) { sort(arr.begin(), arr.end()); if (!arr.empty()) { answer.push_back(arr.back()); arr.pop_back(); } else { answer.push_back(0); } } else { arr.push_back(idx); } } for (in..
PS/BOJ
2021. 10. 7. 08:23