Search found 5 matches

by rij
Mon Aug 08, 2011 11:08 am
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 13966

Re: 574 - too slow

Why wa? Can any one help me?? It will be very helpful for me. how can I check 3+3+3 again and again ? :( #include <iostream> #include <vector> #include <cstdio> using namespace std; int target = 0, sum = 0; vector<bool> used(1005, false); vector<int> v; void recurse(int index){ if(index == v.size())...
by rij
Wed Aug 03, 2011 4:04 pm
Forum: Volume 4 (400-499)
Topic: 469 - Wetlands of Florida
Replies: 63
Views: 21070

Re: Wetlands Of Florida - 469

Me getting errors :( . Why?? Please someone tell me what is the problem? Thanks in advance.

Code: Select all

Got ac problem was in I/O format :)
by rij
Tue Nov 04, 2008 11:49 am
Forum: Volume 115 (11500-11599)
Topic: 11550 - Demanding Dilemma
Replies: 12
Views: 5329

Re: 11550 - Demanding Dilemma

thanks got ac after a number of tries.
by rij
Mon Nov 03, 2008 7:39 pm
Forum: Volume 115 (11500-11599)
Topic: 11550 - Demanding Dilemma
Replies: 12
Views: 5329

Re: 11550 - Demanding Dilemma

corrected but still wa

Code: Select all

void call(int n,int m){
		int count=0,fc=0;
		for(int j=0;j<m;j++){
			count=0;
			for(int i=0;i<n;i++){
				if(arr[i][j]=='1')count++;
			}
			if(count==2)
				fc++;
		}
		if(fc==m)
			cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
		return;
}
by rij
Mon Nov 03, 2008 4:05 am
Forum: Volume 115 (11500-11599)
Topic: 11550 - Demanding Dilemma
Replies: 12
Views: 5329

11550 - Demanding Dilemma

pls give me some test cases.i m getting wa.
heres my code

Code: Select all


Go to advanced search