The 2004 ACM Asia Programming Contest Dhaka, sponsored by IBM
I, myself, can program the program, that fits for the description and gives the stadium perimeter always 400m, but the biggest problem here is, that the example answers don't fit my answers, and they seem wrong ...
Example answer:
input: 5 : 4 output: length width Case 2: 107.2909560477 85.8327648381
Ok, let's test, if those parameters will make total stadium perimeter 400meters.
First, i'll find the ring radius, which is width/2 = 42.9m
That means ring perimeter is 2*PI*42.9m = 269m
now if i add 2*length to the perimeter it'll equal 107.29*2+269 = 483m, which is wrong because stadium perimeter must always be 400m. What the heck am i doing wrong??? Am i understanding the problem wrong, or what?


Sign In
Create Account


Back to top









