The precision is a big problem
rounding the result with 3 decimal points seems impossible
try this case:
1000000 10 1
1 1000000
we get very very large differences...
RE:The precision is a big problem
I get 2236090.096,is it right?
超内存 at
2007-09-02 20:13:54
RE:The precision is a big problem
maybe we get the same trouble...
RE:The precision is a big problem
in calculater it's 2236069.0955357350048060552003268
RE:The precision is a big problem
i am not sure if the results is ok (i cannot run my solution now), but it is definitely of that order of magnitude. Precision would have been a problem if the numbers were larher than what they are (heights > 1000000 or if the distances between the buildings and the first or 2nd goriila could have been less than 1). In fact, the limits for the numbers were chosen in such a way that precision would not be a big problem if you have the correct solution.
RE:The precision is a big problem
sorry i get 2236069.096
超内存 at
2007-09-02 20:22:31
RE:The precision is a big problem
Thank admin, finally I get a beautiful red Accepted~~
RE:The precision is a big problem
the same ,thank you
Pages: 1