|
|
вернуться в форумTo admin : Maybe an error is tests? There are many "AC" for pascal programs and only two for C/C++, maybe there is floating point precision error in pascal because it has no acos,asin functions. Author's solution is written with pascal too, and maybe answers for tests was builded by such solution. Re: To admin : Maybe an error is tests? > There are many "AC" for pascal programs and only two for > C/C++, maybe there is floating point precision error in > pascal because it has no acos,asin functions. Author's > solution is written with pascal too, and maybe answers for > tests was builded by such solution. > I have solved it in C++. I used 'float' as internal data type, and I used acos from standart <math.h> library. The output was performed by printf("%.02f\n",result); Just for your information, for _every_ problem here there are a lot of AC's for pascal and a few of AC's for C/C++ just because the percentage of authors who use pascal is a way higher. Re: To admin : Maybe an error is tests? > There are many "AC" for pascal programs and only two for > C/C++, maybe there is floating point precision error in > pascal because it has no acos,asin functions. Author's > solution is written with pascal too, and maybe answers for > tests was builded by such solution. > Of course, some of them were builded by solution It cannot be floatig precision error - it is enough to calculate with 6-7 digits after point accuracy
|
|
|