// 다음 코드를 완성하시오.
int n = 3;
int x = 1, y = 1;
int dx[4] = {-1,1,0,0};
int dy[4] = {0,0,-1,1};
for(int k=0;k<4;k++){
int nx = x + dx[k];
int ny = y + dy[k];
if( __________________ ){
cout << nx << " " << ny << "\n";
}
}
// 덩어리는 몇 개인가?
// 1 1 0 0
// 0 1 0 1
// 0 0 0 1
// 1 0 0 0
To embed this project on your website, copy the following code and paste it into your website's HTML: