백준 14500 테트로미노 c++


백준 14500 테트로미노 c++

#include #include #include #include #include #include #include #include using namespace std; int n, m; int map[501][501]; bool visited[501][501]; int result = 0; int dx[4] = { -1,0,0,1 };//상하좌우탐색을 위한 배열 int dy[4] = { 0,-1,1,0 }; int func2(int x, int y)//func 함수들은 ㅗ,ㅏ,ㅓ,ㅜ 모양의 테트로미노의 값을 확인 { return map[x][y] + map[x + 1][y] + map[x + 2][y] + map[x + 1][y - 1]; } int func3(int x, int y) { return ma..


원문링크 : 백준 14500 테트로미노 c++