Moderator: Board moderators
Acc
my = min(width/2, len/(2*PI+2)).Is it just me or is the answer for the second test input not optimal....
My binary search gives a radius of 6.036325 - not 5 as the statement says - and that gives a volume of 1144.709. I have checked whether this cylinder is legal and it seems so...
Is it a quirk in the problem statement i got wrong?
code removed
//removed

5 5
50 50
80 80
50 80
20 50
40 80
45 50
5 6
4 5
2 3
0 0
6.781
6780.897
27774.554
14652.276
2289.418
11721.821
5748.996
8.770
4.745
0.824

7 8
4 52
1 47
54 69
47 52
32 78
4 55
4 77
5 86
54 100
7 89
43 55
1 63
1 25
23 44
0 022.506
50.265
0.785
12022.696
6511.038
8914.445
50.265
50.265
98.175
24725.716
269.392
6078.695
0.785
0.785
2038.864Users browsing this forum: No registered users and 1 guest