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 | 29 | 30 | 31 |
Tags
- switch
- 너비우선탐색
- DynamicProgramming
- Algorithm
- Backtracking
- HashMap
- 깊이우선탐색
- 백트래킹
- 동적계획법
- 프로그래머스
- Network
- DFS
- 브루트포스
- 네트워크
- boj
- 그리디
- 이분탐색
- broadcast
- 구현
- 해시
- 백준
- Spring
- 스프링
- dynamic programming
- 알고리즘
- DP
- BFS
- programmers
- 해시맵
- greedy
Archives
- Today
- Total
목록그래프 (1)
옌의 로그
[Algorithm] 백준 - 효율적인 해킹 (1325번)
문제 [백준] 효율적인 해킹 Contest > Internet Problem Solving Contest > IPSC 2008 B번 > N >> M; graph.resize(N+1); int from, to; for (int i=0; i> to >> from; graph[from].push_back(to); } int max_pc = 0; // 해킹 가능 최대 컴퓨터 수 vector res_com; // 컴터 번호 저장 for (int i=1; i= max_pc) { if (possible_com > max_pc) { max_pc = possible_com; res_com.clear(); } res_com.push_back(i); } fill(visited, visited+N+1, 0); // visit..
스터디/알고리즘
2023. 8. 31. 00:24