Search found 1 match

by Parsa123
Sun May 20, 2012 11:28 am
Forum: Volume 8 (800-899)
Topic: 871 - Counting Cells in a Blob
Replies: 27
Views: 20325

Re: 871 - Counting Cells in a Blob

Pls help me i get WA

#include <iostream>
#include <cstring>
#include <string>

using namespace std;

char b[30][30];
string a;
int maxtmp;

void check(int i, int j)
{
if (b[i][j] == '1')
{
b[i][j] = '2';
for (int t = i - 1 ; t <= i + 1 ; t++)
for (int k = j - 1 ; k <= j + 1 ; k++)
if (b[t][k ...

Go to advanced search