Search found 8 matches

by jichen1234
Thu Oct 23, 2014 9:14 pm
Forum: Volume 116 (11600-11699)
Topic: 11615 - Family Tree
Replies: 1
Views: 1552

Re: 11615 - Family Tree

I can't solve this. It's too unethical. :evil:
by jichen1234
Wed Apr 11, 2007 8:53 am
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

How about the following testcase

Code: Select all

1 0 20 0 20 25
1 25 20 0 0 25
1 0 20 25 20 25
All are the same cylinder with 20-diameter base and 25 height filled with 1 deep water, which volume is 314.159265

I found s=1.67 and the volume is 314.159272
by jichen1234
Mon Apr 09, 2007 2:13 pm
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

Hi, my program outputs the wrong result 10 but that is because I consider it as an invalid testcase. A bottle should have rn>0. Anyway, my algebra program tells the volume for s=3.45 is 119.8352061. I found s=5.1 to yield a volume of 301.7440301. Maybe I make some fundamental error? Cu, Erik mm, I ...
by jichen1234
Mon Apr 09, 2007 11:49 am
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

Maybe we can discuss a simpler testcase

Input

Code: Select all

1 0 20 0 0 25
0 0 0 0 0 0
My output is

Code: Select all

3.45
This is a cone bottle with a 20-diameter circular base .
And the volume is about 301.760446

Can u tell me your output?
by jichen1234
Mon Apr 09, 2007 11:25 am
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

We use the same idea calculating the cross section. In fact, I directly calculate the volume of the cross section instead of integration. V= fan-based pyramid - triangular-based pyramid = (1/3)*h*[r*r*acos(x/r)] - (1/3)*h*x*[sqrt(r*r-x*x)] But I'm not sure whether the calculation of triangular-based...
by jichen1234
Mon Apr 09, 2007 7:38 am
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

To Erik

To Erik: I also got WA. While compared to your testcase, all are different except the first and the last testcase. The following outputs are generated by my WA prog. 0.00 2.43 3.92 5.22 6.42 7.56 8.62 9.65 10.67 11.70 12.79 13.86 14.81 15.66 16.40 17.05 17.60 18.06 18.43 18.71 18.90 19.05 19.22 19.4...
by jichen1234
Tue Mar 20, 2007 11:04 am
Forum: Volume 111 (11100-11199)
Topic: 11102 - Moonshine
Replies: 27
Views: 10513

Re: 11102 Moonshine

Artikali wrote:Please help me, i tested it with several test case, but it was WA
here is my code
thanks
Hi, try

Input
15 0 10 0 0 15

Output should be 10.00
but ur program's ouput is 9.98
by jichen1234
Fri May 20, 2005 5:56 pm
Forum: Volume 6 (600-699)
Topic: 616 - Coconuts, Revisited
Replies: 37
Views: 12078

Output:
0 coconuts, no solution
1 coconuts, no solution
2 coconuts, no solution
3 coconuts, 2 people and 1 monkey
7 coconuts, no solution
253 coconuts, no solution
509 coconuts, no solution
65529 coconuts, no solution
16777209 coconuts, no solution
[/quote]

Go to advanced search