오랜만에 백준!!!!예전에 단지 번호 붙이기였나...그문제랑 비슷한듯. Farm 배열에서 1인 부분에서 BFS 돌린 후, BFS 돌린 횟수를 출력하면 끝~ 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879#include #include int M, N, NUM, a, b, Res;int Farm[55][55] = {0,}; typedef struct{ int x; int y;}Point; int BFS(int y, int x){ int dx[] = { 0,0,1,-1 }; int dy[] ..