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