Search found 49 matches
- Sat Feb 11, 2017 6:53 pm
- Forum: Volume 6 (600-699)
- Topic: 627 - The Net
- Replies: 18
- Views: 9426
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]...
- Sun Mar 08, 2015 12:44 pm
- Forum: Volume 4 (400-499)
- Topic: 429 - Word Transformation
- Replies: 82
- Views: 28629
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...
- Fri Mar 06, 2015 7:34 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10986 - Sending email
- Replies: 65
- Views: 36721
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; p...
- Tue Feb 10, 2015 4:40 am
- Forum: Volume 115 (11500-11599)
- Topic: 11561 - Getting Gold
- Replies: 31
- Views: 14447
Re: 11561 - Getting Gold
Thanx brianfry713
- Sun Feb 08, 2015 12:53 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11561 - Getting Gold
- Replies: 31
- Views: 14447
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...
- Fri Feb 06, 2015 9:16 am
- Forum: Volume 3 (300-399)
- Topic: 315 - Network
- Replies: 68
- Views: 30648
Re: 315 - Network
Thanx brianfry713.
- Thu Feb 05, 2015 9:13 am
- Forum: Volume 3 (300-399)
- Topic: 315 - Network
- Replies: 68
- Views: 30648
Re: 315 - Network
Still getting WA...
- Tue Feb 03, 2015 7:32 pm
- Forum: Volume 3 (300-399)
- Topic: 315 - Network
- Replies: 68
- Views: 30648
Why WA?
Accepted
- Sun Jan 25, 2015 10:08 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10616 - Divisible Group Sums
- Replies: 39
- Views: 24216
Re: 10616 - Divisible Group Sums
Thanx lighted
- Sun Jan 25, 2015 10:03 pm
- Forum: Volume 2 (200-299)
- Topic: 280 - Vertex
- Replies: 95
- Views: 34637
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...
- Sat Jan 24, 2015 10:03 am
- Forum: Volume 108 (10800-10899)
- Topic: 10819 - Trouble of 13-Dots
- Replies: 67
- Views: 53215
Re: 10819 - Trouble of 13-Dots
Oops !!! such a silly mistake.
- Tue Jan 20, 2015 8:45 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10819 - Trouble of 13-Dots
- Replies: 67
- Views: 53215
WA
I am not getting the required output for this problem. Here is my code:
Code: Select all
Accepted
- Sun Jan 18, 2015 5:09 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10616 - Divisible Group Sums
- Replies: 39
- Views: 24216
Re: 10616 - Divisible Group Sums
Can someone plz tell me the algorithm for this problem ? Thanx in advance ![:D](./images/smilies/icon_biggrin.gif)
![:D](./images/smilies/icon_biggrin.gif)
- Fri Jan 16, 2015 8:36 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 85178
Re: 10131 - Is Bigger Smarter?
Thanx ... got accepted
But will u plz explain what was the probelm with my logic?
But will u plz explain what was the probelm with my logic?
- Thu Jan 15, 2015 5:15 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10131 - Is Bigger Smarter?
- Replies: 93
- Views: 85178
Re: 10131 - Is Bigger Smarter?
I am getting the following output ... not the one you said
which matches the following:4
4
5
9
1
1000
1100
2000
6008