My code passed every test case in uDebug. But still getting WA. Please help...
#include <bits/stdc++.h>
using namespace std;
#define MAX 2000000000
bool cmp(pair<int,int>a,pair<int,int>b)
{
if(a.first>b.first)
return false;
else if(a.first==b.first)
{
if(a.second>b.second)
return false ...
Search found 16 matches
- Wed Aug 31, 2016 9:46 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10191 - Longest Nap
- Replies: 75
- Views: 44375
- Sun Aug 28, 2016 1:54 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11151 - Longest Palindrome
- Replies: 65
- Views: 43528
Re: 11151 - Longest Palindrome
The following code passed all the udebug test cases. But still getting WA. Please help


Code: Select all
Removed after AC
- Wed Jan 28, 2015 8:33 am
- Forum: Volume 103 (10300-10399)
- Topic: 10377 - Maze Traversal
- Replies: 26
- Views: 14686
Re: 10377 - Maze Traversal
Getting WA please help !!!
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list>
#include<stdio.h>
#include<string.h ...
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list>
#include<stdio.h>
#include<string.h ...
- Thu Jan 08, 2015 11:37 am
- Forum: Volume 4 (400-499)
- Topic: 468 - Key to Success
- Replies: 33
- Views: 7882
Re: 468 - Key to Success
Thanks Brianfry 
Accepted.

Accepted.
- Wed Jan 07, 2015 6:53 am
- Forum: Volume 4 (400-499)
- Topic: 468 - Key to Success
- Replies: 33
- Views: 7882
- Sat Jan 03, 2015 9:59 pm
- Forum: Volume 4 (400-499)
- Topic: 468 - Key to Success
- Replies: 33
- Views: 7882
Re: 468 - Key to Success
Getting WA. Please help...
This one is getting WA too.. !!!


Code: Select all
Removed after AC
Code: Select all
Removed after AC
- Wed Dec 24, 2014 4:53 am
- Forum: Volume 11 (1100-1199)
- Topic: 1181 - Rubik's Cube
- Replies: 4
- Views: 2834
Re: 1181 - Rubik's Cube
Thanks brianfry713 !!!



- Mon Dec 22, 2014 12:08 pm
- Forum: Volume 11 (1100-1199)
- Topic: 1181 - Rubik's Cube
- Replies: 4
- Views: 2834
Re: 1181 - Rubik's Cube
Still WA.
Code: Select all
Code Removed After AC.
- Mon Dec 22, 2014 10:48 am
- Forum: Volume 128 (12800-12899)
- Topic: 12898 - AND OR
- Replies: 7
- Views: 3506
- Fri Nov 07, 2014 9:29 am
- Forum: Volume 11 (1100-1199)
- Topic: 1181 - Rubik's Cube
- Replies: 4
- Views: 2834
- Tue Sep 16, 2014 9:41 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11800 - Determine the Shape
- Replies: 47
- Views: 22259
Re: 11800 - Determine the Shape
Thanks I got the point.
- Tue Sep 16, 2014 9:39 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10036 - Divisibility
- Replies: 37
- Views: 18713
Re: 10036 - Divisibility
Thank you brianfry713. I will try to write cleaner code. 

- Thu Sep 11, 2014 11:37 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10036 - Divisibility
- Replies: 37
- Views: 18713
Re: 10036 - Divisibility
Getting TLE.
Is there anything wrong in my dp function ?
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list ...
Is there anything wrong in my dp function ?
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list ...
- Thu Sep 11, 2014 11:34 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11800 - Determine the Shape
- Replies: 47
- Views: 22259
Re: 11800 - Determine the Shape
Still getting WA.
here is the code:
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list>
#include<stdio.h>
#include ...
here is the code:
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<cctype>
#include<set>
#include<bitset>
#include<algorithm>
#include<list>
#include<stdio.h>
#include ...
- Fri Aug 29, 2014 10:42 pm
- Forum: Volume 118 (11800-11899)
- Topic: 11800 - Determine the Shape
- Replies: 47
- Views: 22259
Re: 11800 - Determine the Shape
Why I am getting WA? Anyone help please !!! And isn't the sample output for the third test case is wrong ? It should print Parallelogram but they printed Rhombus.
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack ...
#include<iostream>
#include<sstream>
#include<string>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<stack ...