// Polar.cc #include using namespace std; #define FOR(i,a,b) for(int i=a;i>k; FOR(i,0,k){ cin>>a>>b; A[a][b] = true; } } // count the neighbors // g = ring, d = radii int Nbrs(int g, int d){ //count neighbors of A[g][d] int count = 0; if (g>0 && g0){ FOR(i,0,m) FOR(j,0,n) if(A[i][j]){ counter++; if (counter == 1) cout<<' '<>m>>n; while(n>0){ bool A[m][n]; init (); GetCells(); cin>>gens; FOR(i,0,gens){ MakeMove(); } cout<<"Case "<>m>>n; } return 0; }