[16137번] 견우와 직녀
16137번: 견우와 직녀 www.acmicpc.net #include #include #include using namespace std; struct pnt { int rr, cc; }temp; queueCliff, Q, temp_Q; int N, M; int Map[10][10]; int visit[10][10]; int temp_arr[10][10];//visit 바뀌기 전 정보를 저장 int drc[] = { 0,0,-1,1,-1,1,0,0 }; int min_temp = 10000; bool chk(int r, int c) { char flag = true; if (r - 1 >= 0 && c + 1 < N) { if (Map[r - 1][c] == 0 && Map[r][c + 1] == 0)..
2018. 11. 8.