I don't know whether I am right or wrong but I think the judge test case has a mistake. as example consider the following test case:
1
10
3 0
2 1
-2 1
-1 0
-2 -1
-1 -3
-2 -4
2 -4
3 -3
2 -1
according to problem description I think this case should output "No". But probably in judge test case this ...
Search found 3 matches
- Wed Oct 05, 2011 6:21 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10416 - Folding My T-Shirt
- Replies: 13
- Views: 9265
- Tue Nov 16, 2010 7:12 pm
- Forum: Volume 9 (900-999)
- Topic: 922 - Rectangle by the Ocean
- Replies: 3
- Views: 3871
Re: 922 - Rectangle by the Ocean
@ashugoyal::: It's about 3 years since you posted :( . I think you dont need this help anymore. :) I just solved the problem right now. But I m posting it in case if
anyone need it(hopefully not :wink: ).
1. At first you have to find the smallest grid to have the map. So certainly you have to ...
anyone need it(hopefully not :wink: ).
1. At first you have to find the smallest grid to have the map. So certainly you have to ...
- Sat Nov 13, 2010 8:23 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10931 - Parity
- Replies: 18
- Views: 12845
Re: 10931 - Parity
I just can't understand what can be the reason of WA here.
Its a simple code but WA. :-(
anybody can help me??
Here is my code
#include <iostream>
#include <cstring>
using namespace std;
int c;
char* calculate(int n)
{
int i = 0,j;
c = 0;
char bin[50];
if(n%2) c++;
bin[i++] = (n%2)+48;
n ...
Its a simple code but WA. :-(
anybody can help me??
Here is my code
#include <iostream>
#include <cstring>
using namespace std;
int c;
char* calculate(int n)
{
int i = 0,j;
c = 0;
char bin[50];
if(n%2) c++;
bin[i++] = (n%2)+48;
n ...