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 |
Tags
- 30870
- boj #백준
- 최소 #공배수 #최대 #공약수 #유클리드 #호제법 #lcm #gcd #c++ #boj #3343 #백준 #장미
- C++
- graph #최단경로
- LIS #가장긴증가하는부분수열 #
- 사이클 없는 그래프
- c++ #입출력 #속도 #ios #sync_with_stdio #cin #cout #tie
- hcpc
- 20117
- N번째큰수
- 코딩
- 레드아보
- 줄어드는수
- 이분탐색 #dp #11053
- BOJ
- 3343
- 22869
- 백준 #다익스트라 #dijkstra #9370 #c++
- c++ #boj #
- backtracking #codetree #디버깅 #삼성코테
- graph
- 진법변환 #2to10 #10to2 #이진법 #십진법 #변환 #bitset #c++
- 3D #Reconstruction #computer #vision #volume #metric #tsdf #kinect #fusion
- 투포인터 #백준 #boj #20922 #22862
- 쌤쌤쌤
- 백준
- 16202
- 1174
- 호반우 상인
Archives
- Today
- Total
목록알고리즘 연습/코드트리 (1)
hyunjin
[삼성, 디버깅] BackTracking, Simulate, 백트래킹 시간 줄이기
문제 1차 코드 #include #include #include #include #include #define MAX_H 30 #define MAX_N 10 using namespace std; int N, H; bool grid[MAX_H+1][MAX_N+1]; vector candi; int ans = 10; bool InRange(int x) { return 0 ans) return; if (Verify()) ans = min(ans, cnt); if (cnt > 3) return; for (int i = start; i < candi.size(); i++) { int y, x; tie(y, x) = candi[i]; //선 겹침 if (InRange(x - 1) && grid[y][x - 1]) ..
알고리즘 연습/코드트리
2024. 4. 5. 15:49