there is more than one path from row 1 to row 4 for black:
(1, 2) -> (2, 3) -> (3, 2) -> (4, 1)
or
(1, 4) -> (2, 3) -> (3, 2) -> (4, 1)
same for the 2nd game. it seems to me that everyone is winning the game
Moderator: Board moderators


char line[201],arr[200][201];
int I,i;
while(1)
{
gets(line);
sscanf(line,"%d",&I);
if(!I) break;
for(i=0;i<I;i++)
gets(arr[i]);
}
char temp,arr[200][201];
int I,i;
while(1)
{
scanf("%d",&I);
scanf("%c",&temp);
if(!I) break;
for(i=0;i<I;i++)
gets(arr[i]);
}


Users browsing this forum: No registered users and 1 guest