#include #include //bfsusing namespace std;int box[1002][1002];int ripen[1002][1002]; struct xy{ int x; int y;};int main(){ queue q; int M, N; cin >> M >> N; int cnt=0; int result=0; for(int i=0; i
#include using namespace std; int main(){ int T; cin >> T; for(int i=1; i> N; char farm[49]; int sum=0; int cnt=0; for(int j=0; j> farm; for(int k=0; k=(N/2-j) && k farm; for(int k=cnt; k