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
- 백준
- 백준 17071
- C++1167
- 알고리즘
- c언어
- 프로그래머스
- C++ 1937
- DFS
- BFS
- 가장 긴 증가하는 부분 수열
- C++
- DP
- 순열
- 소트 게임
- C++ 1918
- LIS
- C++1967
- 조합
- 백준 숨바꼭질5
- 위상정렬
- 16933
- 다익스트라
- 투포인터
- C++ 17071
- 인덱스 트리
- 조합론
- 백트래킹
- 문자열
- strtok
- Backtracking
Archives
- Today
- Total
목록구현 (1)
블로그
[C++] 14502: 연구소
골드 Ⅴ #include #include #include using namespace std; int N, M; int map[8][8]; int testmap[8][8]; vector emptys; vector viruses; int ans = -1; void maketestmap() { for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { testmap[i][j] = map[i][j]; } } } int calculatesize() { int cnt = 0; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { if (testmap[i][j] == 0) cnt++; } } return cnt; ..
PS
2022. 1. 29. 16:31