|
|
back to boardWA #8 I get WA #8 and I suppose it's because of the precision. I tried rotating everything so that the mirror becomes (0,0) -> (L,0) actually using sin and cos and got WA #8. I tried finding out the relative coordonates without actually using rotations (using distances) and got WA at even lower tests (4 or 5). Can anybody help me with some hints? Should i try it in pascal with the extended type? Or anybody that got AC in C please help. I used long arithmetics (+) All calculations can be done in integers. 100-digit numbers are quite enough. Re: I used long arithmetics (+) But don't you need sqrt (and maybe division too)? Or you did those on large numbers as well? Re: I used long arithmetics I don't need division and sqrt, only addition, subtraction and multiplication. I got it now. Thank you (-) I've got AC without long number arithmetics - just don't use rotation (-) Didn't work for me (+) I tried using double and no rotations. Actually the exact operations i did on long nombers and got AC, but on double (only add, sub and mul). It didn't work. Maybe with pascal's extended it does. |
|
|