Search found 131 matches

by Antonio Ocampo
Mon Jan 08, 2007 7:52 pm
Forum: Volume 102 (10200-10299)
Topic: 10226 - Hardwood Species
Replies: 121
Views: 38113

I've got WA too :( Please help me!! #include <cstdio> #include <iostream> #include <algorithm> #include <string> #include <map> #define Fe(it,v) for(__typeof__ ((v).begin()) it=v.begin();it!=(v).end();++it ) using namespace std; int main() { int casos; scanf("%d",&casos); while(casos--) { map <strin...
by Antonio Ocampo
Sat Dec 10, 2005 4:38 am
Forum: Other words
Topic: Notice: Second Programming Contest of Newbies
Replies: 6
Views: 2356

Hi for all

I think that December 22nd would be ok! Btw, I want to eat a lot of turkey in Christmas.

Best regards
by Antonio Ocampo
Wed Dec 07, 2005 2:45 am
Forum: Off topic (General chit-chat)
Topic: Finding recurrence relation
Replies: 2
Views: 1858

Concrete Mathematics by Graham,Knuth and Patashnik
by Antonio Ocampo
Thu Nov 17, 2005 9:58 pm
Forum: Volume 109 (10900-10999)
Topic: 10964 - Strange Planet
Replies: 13
Views: 6244

Thx a lot Adrian and Observer !!!!!!!!!! I've finally got AC :P It was an integer overflow error :oops:

Thx again and keep posting.
by Antonio Ocampo
Wed Nov 16, 2005 5:15 pm
Forum: Volume 109 (10900-10999)
Topic: 10964 - Strange Planet
Replies: 13
Views: 6244

Thx for your reply Adrian. I've fixed a little mistake in my code :D However, I still get WA :cry: Could you or someone else give me the outputs for these inputs? Input 123 1423 57 234 6723 546 733 785143 98743 12 2 43 16 852 7653 34 42 98 564 111 9999999 23 10000001 1000000000 1000 10000 871 2387 6...
by Antonio Ocampo
Wed Nov 16, 2005 6:13 am
Forum: Volume 109 (10900-10999)
Topic: 10964 - Strange Planet
Replies: 13
Views: 6244

Uhmmmmmmm I got a different output for

Code: Select all

9999913 762 
Now my question is WHY? :roll: I guess i'm using a right approach. Could anyone give me any critical I/O?

Regards :P
by Antonio Ocampo
Wed Nov 16, 2005 6:05 am
Forum: Volume 3 (300-399)
Topic: 358 - Don't Have A Cow
Replies: 52
Views: 10752

Please help me, I'm stuck in this problem :cry:
by Antonio Ocampo
Tue Nov 15, 2005 4:19 am
Forum: Volume 109 (10900-10999)
Topic: 10964 - Strange Planet
Replies: 13
Views: 6244

10964 - Strange Planet

Hi for all. I got WA in this problem :cry: . Could someone confirm this I/O or sharing with me another one? Input 1 1 3423 345223 564 1231 873 123 856 43 99 11 100000000 198437 87584 28323 9999913 762 1000000000 1000000000 0 0 9826 32 9567 823 -1 -1 Output 0.00 339.91 5.83 9.85 13.34 7.00 5221.20 23...
by Antonio Ocampo
Wed Nov 09, 2005 1:32 am
Forum: Volume 3 (300-399)
Topic: 358 - Don't Have A Cow
Replies: 52
Views: 10752

Hi folks. Could someone give me any critical I/O? I got several WA in this problem I guess is a precision error. Btw, this is my code(i'm using Newton-Raphson Method) #include <stdio.h> #include <math.h> int main() { int r,casos; double error,p0,p1,eps=1e-6,f,df,k,p,pi=3.14159; scanf("%i",&casos); d...
by Antonio Ocampo
Mon Nov 07, 2005 1:28 am
Forum: Volume 109 (10900-10999)
Topic: 10958 - How Many Solutions?
Replies: 17
Views: 5704

Thx a lot mamun. I got AC.

Keep posting :)
by Antonio Ocampo
Sun Nov 06, 2005 7:31 pm
Forum: Volume 109 (10900-10999)
Topic: 10958 - How Many Solutions?
Replies: 17
Views: 5704

According to the statement: "Input is terminated by a case where the value of m, n and p (-1000 ≤ m, n, p ≤ 1000) is zero."

So what happened if m=0 or n=0 or p=0?

Thx in advance :wink:
by Antonio Ocampo
Tue Nov 01, 2005 5:24 am
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 21368

Thx a lot for sharing your great ideas !! :P I've just changed the initial value of min for 10000000 instead of 10000 and my output format(including the epsilon). And ........ finally I got AC :D. Thx for helping me to finishing with this horrible nightmare :wink: Keep posting. PS Sorry for your los...
by Antonio Ocampo
Sun Oct 30, 2005 9:04 pm
Forum: Volume 100 (10000-10099)
Topic: 10061 - How many zero's and how many digits ?
Replies: 43
Views: 21368

Hi nymo thx for your reply :wink: . I got the same output with my WA code :( . So i'm posting it:

Code: Select all

Cut after AC :)
Please help me. This problem is driving me mad :evil:

Thx in advance
by Antonio Ocampo
Sun Oct 23, 2005 10:18 pm
Forum: Volume 109 (10900-10999)
Topic: 10940 - Throwing cards away II
Replies: 28
Views: 14268

asif_rahman0 wrote:my algo is:

1) find power of 2^(0<i<20)that is smaller than the given number
2) then calculate power of 2^(i-1)
3) then minus this number from given value (eg. n=19 value=19-16=3
so 3*2=6 result is 6)
Hi, what happened when n-2^(i-1)=0??

Hope it helps
by Antonio Ocampo
Sun Oct 23, 2005 10:16 pm
Forum: Volume 109 (10900-10999)
Topic: 10940 - Throwing cards away II
Replies: 28
Views: 14268

asif_rahman0 wrote:my algo is:

1) find power of 2^(0<i<20)that is smaller than the given number
2) then calculate power of 2^(i-1)
3) then minus this number from given value (eg. n=19 value=19-16=3
so 3*2=6 result is 6)
Hi, what happened when n-2^(i-1)=0??

Hope it helps

Go to advanced search