still returning Wrong Answer :/
@edit
It's not Presentation Error, but all the test cases worked
Search found 2 matches
- Fri Feb 13, 2015 3:06 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 125899
- Wed Feb 11, 2015 8:32 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 125899
Re: 10189 - Minesweeper
#include<stdio.h>
char matriz[200][200];
int resp[200][200];
void checkviz(int x, int y)
{
int dx[] = { 1, 1, 1, 0, 0, -1, -1, -1 };
int dy[] = { 1, -1, 0, 1, -1, 1, 0, -1 };
int i,j,c;
if(matriz[x][y] == '*')
resp[x][y] = -1;
else if(y == 0)
{
c = 0;
if(matriz[x-1][y] == '*')
c++;
if ...
char matriz[200][200];
int resp[200][200];
void checkviz(int x, int y)
{
int dx[] = { 1, 1, 1, 0, 0, -1, -1, -1 };
int dy[] = { 1, -1, 0, 1, -1, 1, 0, -1 };
int i,j,c;
if(matriz[x][y] == '*')
resp[x][y] = -1;
else if(y == 0)
{
c = 0;
if(matriz[x-1][y] == '*')
c++;
if ...