## Search found 5 matches

Wed May 25, 2011 8:50 am
Forum: Volume 103 (10300-10399)
Topic: 10337 - Flight Planner
Replies: 20
Views: 9158

### Re: 10337 - Flight Planner

why the answer of the input
1

300
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10
10 -10 10

is

100???

Could someone explain to me?? thanks
Fri Apr 02, 2010 5:00 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 28778

### Re: 195: anagram, wrong answer

helloneo wrote:I think your compare function is not correct..

m=i>='a'&&i<='a'?i-'a':i-'A';

Shouldn't this be..

m= i>='a' && i <= 'z' ? i - 'a' : i - 'A'
I got AC.Thank you!
That was a stupid mistake
Wed Mar 31, 2010 4:27 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 28778

### Re: 195: anagram, wrong answer

I think my algorithm is right,but I got WA.

Code: Select all

``````AC

``````
Mon Mar 09, 2009 4:59 pm
Forum: Volume 3 (300-399)
Topic: 336 - A Node Too Far
Replies: 121
Views: 41918

### Re:

A little speech about the problem: I got at least 6 times WA for the given code ( in the previous post). I posted here bcz I didn't found any bug in my code. I hoped that I will get helped from the great helpers about my problem. But I failed to get help from others. I think somebody ( cordial pers...
Wed Aug 27, 2008 7:13 pm
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 31336

### Re: 562 - Dividing Coins

I got WA. And I still can't find my mistakes. Could anyone give me some test data? Here is my code #include <cstdio> #include <memory> #define abs(a) ((a)>=0?(a):-(a)) int main(){ int q; scanf("%d",&q); while(q--){ bool *a1=new bool[501]; bool *a2=new bool[501]; bool *now; bool *tmp; memset(a1,false...