|  | 
|  | 
| back to board | What is wrong? C++ WA2 Pascal WA3 Posted by alext  28 Aug 2007 00:20wtf?? My equal solutions on Pascal and C++ has WA on tests 3 and 2. Why? I used some formulas - sqrt(2)/2, cos(pi/4), and others.
 May be, error in real types (I used some variants:
 Pascal - extended
 C++ - double, long double
 )
 
 I read other topics about this problem, but I have not AC :)
 
 Thanks.
Re: What is wrong? C++ WA2 Pascal WA3 Posted by Lomir  28 Aug 2007 00:57I used:const double root = sqrt(2.0)/2.0;
Re: What is wrong? C++ WA2 Pascal WA3 Posted by Lomir  28 Aug 2007 00:57Ups.. double post..
 Edited by author 28.08.2007 00:57
 | 
 | 
|