쿼드트리
-
백준 1992번 쿼드트리PS 2021. 4. 4. 23:29
www.acmicpc.net/problem/1992 탐색하고 분할하고. 분할1을(를) 탐색하고 분할2을(를) 탐색하고 분할3을(를) 탐색하고 분할4을(를) 탐색하고 ... #include #include #include using namespace std; #define MAX 64 int n; int map[MAX][MAX]; string retZip(int y, int x, int size) { if (size == 1) { return to_string(map[y][x]); } bool zero = true, one = true; for (int i = y; i < y + size; i++) { for (int j = x; j < x + size; j++) { if (map[i][j]) { zero..