{{{~cpp #include using namespace std; int main() { int M,N,i,j; cout << "행과 열의 크기를 입력해 주십시오 : "; cin >> M >> N; int **board = new int *[M]; for (i=0; i> start_x >> start_y; cout << "이동할 행로들을 입력하십시오 : "; char ch[100]; cin.get(); cin.getline(ch,100); int num = strlen(ch); char *A = new char [num+1]; for (i=0; i 0) { check = 0; next_x = next_x + walker_x[route[i]]; next_y = next_y + walker_y[route[i]]; if (next_x == -1) next_x = N-1; if (next_x == N) next_x = 0; if (next_y == -1) next_y = M-1; if (next_y == M) next_y = 0; board[next_y][next_x]++; count++; i++; for (int a=0; a