Search found 49 matches

by richatibrewal
Sat Feb 11, 2017 6:53 pm
Forum: Volume 6 (600-699)
Topic: 627 - The Net
Replies: 18
Views: 6283

Re: 627 - The Net

I wrote the code for this problem. I dont know why I am getting RunTime Error #include<cstdio> #include<cstring> #include<vector> #include<stack> #include<queue> #define MAXLEN 500 #define INF 1000000000 using namespace std; vector<vector<int> > graph; int parent[MAXLEN][MAXLEN],dist[MAXLEN][MAXLEN]...
by richatibrewal
Sun Mar 08, 2015 12:44 pm
Forum: Volume 4 (400-499)
Topic: 429 - Word Transformation
Replies: 82
Views: 15693

Re: 429 - Word Transformation

Hii, I am getting WA for this problem. Following is my code :- #include<cstdio> #include<string> #include<map> #include<iostream> #include<vector> #include<climits> #include<queue> #include<sstream> #define MAXLEN 210 using namespace std; map<string,int> mp; vector<vector<int> > graph; int dist[MAXL...
by richatibrewal
Fri Mar 06, 2015 7:34 pm
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 25620

Why WA?

The following code is getting a WA. Plz help #include<cstdio> #include<vector> #include<climits> #include<queue> #define MAXLEN 20010 struct node { int data,weight; }; class compare { public: bool operator()(const node& a,const node& b) { return a.weight>b.weight; } }; using namespace std; priority_...
by richatibrewal
Tue Feb 10, 2015 4:40 am
Forum: Volume 115 (11500-11599)
Topic: 11561 - Getting Gold
Replies: 31
Views: 8921

Re: 11561 - Getting Gold

Thanx brianfry713
by richatibrewal
Sun Feb 08, 2015 12:53 pm
Forum: Volume 115 (11500-11599)
Topic: 11561 - Getting Gold
Replies: 31
Views: 8921

Cannot understand the question

It is written that every trap sends a draft to its adjacent(top, bottom,left, right) location. Does this mean that if there is a gold at the draft postion , it should not be counted? If not, then please explain with respect to examples given in the question. As far as I can understand, in these exam...
by richatibrewal
Fri Feb 06, 2015 9:16 am
Forum: Volume 3 (300-399)
Topic: 315 - Network
Replies: 68
Views: 20191

Re: 315 - Network

Thanx brianfry713.
by richatibrewal
Thu Feb 05, 2015 9:13 am
Forum: Volume 3 (300-399)
Topic: 315 - Network
Replies: 68
Views: 20191

Re: 315 - Network

Still getting WA...
by richatibrewal
Tue Feb 03, 2015 7:32 pm
Forum: Volume 3 (300-399)
Topic: 315 - Network
Replies: 68
Views: 20191

Why WA?

Accepted
by richatibrewal
Sun Jan 25, 2015 10:08 pm
Forum: Volume 106 (10600-10699)
Topic: 10616 - Divisible Group Sums
Replies: 39
Views: 18221

Re: 10616 - Divisible Group Sums

Thanx lighted
by richatibrewal
Sun Jan 25, 2015 10:03 pm
Forum: Volume 2 (200-299)
Topic: 280 - Vertex
Replies: 95
Views: 20495

Why WA?

I am continuosly getting WA for the following code. I am using BFS and adjacency list in my algorithm. It is giving the right output for all the sample cases given in this forum. #include<cstdio> #include<cstdlib> #include<queue> using namespace std; typedef struct linked_list { int data; struct lin...
by richatibrewal
Sat Jan 24, 2015 10:03 am
Forum: Volume 108 (10800-10899)
Topic: 10819 - Trouble of 13-Dots
Replies: 67
Views: 34562

Re: 10819 - Trouble of 13-Dots

Oops !!! such a silly mistake.
by richatibrewal
Tue Jan 20, 2015 8:45 pm
Forum: Volume 108 (10800-10899)
Topic: 10819 - Trouble of 13-Dots
Replies: 67
Views: 34562

WA

I am not getting the required output for this problem. Here is my code:

Code: Select all

Accepted
by richatibrewal
Sun Jan 18, 2015 5:09 pm
Forum: Volume 106 (10600-10699)
Topic: 10616 - Divisible Group Sums
Replies: 39
Views: 18221

Re: 10616 - Divisible Group Sums

Can someone plz tell me the algorithm for this problem ? Thanx in advance :D
by richatibrewal
Fri Jan 16, 2015 8:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 92
Views: 63045

Re: 10131 - Is Bigger Smarter?

Thanx ... got accepted

But will u plz explain what was the probelm with my logic?
by richatibrewal
Thu Jan 15, 2015 5:15 pm
Forum: Volume 101 (10100-10199)
Topic: 10131 - Is Bigger Smarter?
Replies: 92
Views: 63045

Re: 10131 - Is Bigger Smarter?

I am getting the following output ... not the one you said
4
4
5
9
1
which matches the following:
1000
1100
2000
6008

Go to advanced search