|  | 
|  | 
| вернуться в форум | Probably tests are wrong... I've sent two solutions.On the test one million of '1'
 
 the first one outputs:
 -707106.7811865476 -707106.7811865476
 
 the second one outputs:
 -707106.7811865475 -707106.7811865475
 
 Of course both solutions get AC.
Re: Probably tests are wrong... Well, I've got two different solutions for this problem too. BUT!
 on the testcase one million of '1'
 the first one outputs:
 -707106.7811914912
 
 and the second (!)
 -11992.5310089238
 
 both AC..
 I think the difference is very big...
Re: Probably tests are wrong... Mine outputs exactly the same asSergey's  -707106.7811914912 BUT I HAVE WA#2! WHY!?
 
 Here is my code:
 
 [code deleted]
 
 Edited by moderator 22.02.2006 22:07
Re: Probably tests are wrong... I think z must be sqrt(2)/2And real is not so exact, use double or extended
Re: Probably tests are wrong... there is something strange i got WA with cos(45) but when i changen it to sqrt(2)/2 i got AC:
 [code deleted]
 
 Edited by moderator 22.02.2006 22:08
cos(45) ??? Послано wwwwww  12 янв 2006 23:49cos(pi/4) = sqrt(2)/2but cos(45) is something strange.
Re: cos(45) ??? i didn't know this. thank you very muchRe: cos(45) ??? cos(45) - but you must change it into cos(pi/4)- degree must be in radian^) | 
 | 
|