[3184번] 양
3184번: 양 www.acmicpc.net /*3184번 양*/ #include #include #include using namespace std; struct pnt { int rr, cc; }temp; int R, C; string Map[250]; int area_chk[250][250]; queuewolf_Q; queuesector; int wolf, sheep, wolf_cnt, sheep_cnt; int drc[] = { 0,0,-1,1,-1,1,0,0 }; int area_bfs(int r,int c) { temp.rr = r; temp.cc = c; sector.push(temp); if (Map[r][c] == 'v') { wolf_cnt = 1; sheep_cnt = 0; } els..
2019. 2. 11.