|
|
вернуться в форумWhat is wrong? C++ WA2 Pascal WA3 Послано alext 28 авг 2007 00:20 wtf?? 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 Послано Lomir 28 авг 2007 00:57 I used: const double root = sqrt(2.0)/2.0; Re: What is wrong? C++ WA2 Pascal WA3 Послано Lomir 28 авг 2007 00:57 Ups.. double post.. Edited by author 28.08.2007 00:57 |
|
|