#include #include char pole[301][151]; int sebrano; int rozmer_x,rozmer_y; void seber(int x, int y, char barva) { printf ("sebrat :(%d,%d),rozmer_y:%d\n",x,y,rozmer_y); if (pole[x][y]==barva) { sebrano+=1; pole[x][y]='.'; printf("(%d,%d)sebral 1:%d \n",x,y,sebrano); } else return; if ( x>1 )seber(x-1,y,barva); if ( x1 )seber(x,y-1,barva); if ( yrozmer_y)); } if (stary>rozmer_y) break; /* else {*/ pole[i][y] = pole[i][stary]; if (stary != y) { pole[i][stary] = '.'; } // } } } } void zmensi_pole_horiz() { int i,j; int stary =1, novy =0,y; int zmena=1; for (y =1; y<=rozmer_y;y++) { for(i=1;irozmer_x)); } if (stary>rozmer_x) break; /* else {*/i y pole[y][i] = pole[stary][i]; if (stary != i) { pole[stary][i] = '.'; } // } } } /* int i,j; int zmena=1; for(i=1;i1 ) && (pole[x-1][y]==akt) ) || ( (x1 ) && (pole[x][y-1]==akt) ) || ( (y>>>\n"); } if (pole_prazdne()) score+=1000; printf ("score :%d\n",score); } int main (void) { int a,b; scanf("%d",&a); for(b=0;b