음... 영양가 하나도 없는 밥을 억지로 우겨넣는 느낌의 문제였다.배열 초기화만 할 줄 알면 쉽게 풀 수 있다. #include #include using namespace std;int a[1001][1001];int p[501][501];int t[20][4][4] = { { {1,1,1,1}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} }, { {1,0,0,0}, {1,0,0,0}, {1,0,0,0}, {1,0,0,0} }, { {1,1,0,0}, {1,1,0,0}, {0,0,0,0}, {0,0,0,0} ..