Search found 8 matches

by newtype feng
Sun Sep 05, 2004 4:51 pm
Forum: Volume 104 (10400-10499)
Topic: 10417 - Gift Exchanging
Replies: 12
Views: 5522

Thanks for the lightning fast response, but then I've no clue what's wrong with my code... :( I'm just checking all possible distributions of the gifts and multiply up the respective probabilities: i think your max is the one not div num . if div it result will be different. My english is poor,hope...
by newtype feng
Tue Sep 02, 2003 8:32 am
Forum: Volume 105 (10500-10599)
Topic: 10542 - Hyper-drive
Replies: 9
Views: 5154

10542 - Hyper-drive

I always got WA in this problem.can someone give me some more samples.thx.
by newtype feng
Tue Aug 26, 2003 11:38 am
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 22306

10523 now you can get AC

the judgement is ok, i got AC today. :P
by newtype feng
Fri Aug 08, 2003 7:21 am
Forum: Volume 105 (10500-10599)
Topic: 10532 - Combination! Once Again
Replies: 15
Views: 4435

i got AC,now

thank you!
i got AC now.
it is really strange,but i really don't then different between cin,cout and printf ,scanf
by newtype feng
Fri Aug 01, 2003 7:23 pm
Forum: Volume 105 (10500-10599)
Topic: 10532 - Combination! Once Again
Replies: 15
Views: 4435

still wa

i have tried long long.but still WA.
is there some more sample test case?
by newtype feng
Thu Jul 31, 2003 3:12 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31119

the first number and the second number can be change
like this:
999999 1
by newtype feng
Thu Jul 31, 2003 2:59 pm
Forum: Volume 105 (10500-10599)
Topic: 10532 - Combination! Once Again
Replies: 15
Views: 4435

WA!!!!!!!!!!!!

for this input my code can output the right answer,but i still got WA. this is my code [cpp]#include<iostream.h> long k=0,b[50]={0},a[50]; long res[60][60]; long f( long k, long r) { long re=0; long i; if(k==0) { if(r>a[k]) return 0; else return 1; } if(r==1) return k+1; for(i=0;i<=a[k];i++) { if(r-...
by newtype feng
Thu Jul 31, 2003 2:47 pm
Forum: Volume 3 (300-399)
Topic: 375 - Inscribed Circles and Isosceles Triangles
Replies: 19
Views: 2591

i know why you got P.E

try this output
:D
[cpp]printf("%13.6lf\n",res);[/cpp]

Go to advanced search