일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 이분 탐색
- router
- HTTP
- JavaScript
- 자바스크립트
- 그래프 탐색
- trie
- insomnia
- html5
- vector insert
- 백준 1918번
- MongoDB
- MySQL
- Prisma
- Github
- Next
- Keys
- PROJECT
- DP
- localstorage
- pm2
- 그리디
- Express.js
- 트라이
- ERD
- branch
- string
- 게임 서버 아키텍처
- ccw 알고리즘
- map
Archives
- Today
- Total
목록뱀과 사다리 게임 (1)
dh_0e

BFS로 풀 수 있는 간단한 문제greedy 방식이 왜 항상 최적의 값을 찾을 수 없는지 알려주기 좋은 문제같다. #include#include#includeusing namespace std;int d[101], vi[101];queue> que;int f(int cur, int c) { for (int i = 1; i pa = que.front(); que.pop(); if (pa.first == 100) { printf("%d\n", pa.second); break; } f(pa.first, pa.second); } return 0;}
알고리즘/Baekjoon
2025. 4. 9. 22:43