Search found 1 match

by chanson
Fri Oct 21, 2005 8:38 am
Forum: Volume 109 (10900-10999)
Topic: 10937 - Blackbeard the Pirate
Replies: 14
Views: 8638

i think there's something wrong in the test case...

for(i = 1; i <= h; i ++)
{
scanf("%s", &map [1]);
for(j = 1; j <= w; j ++)
{
if (map [j] == '@') st = pr(i, j);
else if (map [j] == '!')
{
trea[nt ++] = pr(i, j);
map [j] = nt;
}
//when i added following code,i got a tle...
//if (map [j] != '*' && map [j] != '.'
//&&map [j ...

Go to advanced search