[백준] 1780 종이의 개수 (c++)
#include #include #include using namespace std; int n; long long int arr[3001][3001]; int count_number[3]; string str, tmp; void bh(int x, int y, int n) { int first = arr[x][y]; bool flag = true; for (int i = x; i < x + n; i++) { for (int j = y; j < y + n; j++) { if (arr[i][j] != first) { flag = false; break; } } } if (flag) { count_number[first + 1]++; } else { for (int a = x; a < x + n; a += n..
2022.07.07