Search found 3 matches

by FelixP
Fri Sep 23, 2011 6:03 am
Forum: Volume 117 (11700-11799)
Topic: 11730 - Number Transformation
Replies: 7
Views: 5133

Re: 11730 - Number Transformation

hi, i can't understand why 11 to 33 is -1?

can't you just do this ? 11 -> 22 ->> 33
by FelixP
Sun Aug 28, 2011 6:26 am
Forum: Volume 8 (800-899)
Topic: 871 - Counting Cells in a Blob
Replies: 27
Views: 20228

Re: 871 - Counting Cells in a Blob

Code: Select all

bool isvalid(int i,int j)
{
   return i>=0 && i<n && j>=0 && j<n;
}
do you assume that row has the same number as col?
maybe this is the one that causes RTE
by FelixP
Sun Aug 21, 2011 7:53 am
Forum: Volume 112 (11200-11299)
Topic: 11284 - Shopping Trip
Replies: 32
Views: 19594

Re: 11284 - Shopping Trip

Hello, I have tried anything suggested before and still got WA
Here is my code

#include <cstdio>
#include <iostream>
#include <cstring>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <math.h>
using namespace std ...

Go to advanced search