ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1075. Thread in a Space

To admin : Maybe an error is tests?
Posted by Somov Alexander (YH) 27 Mar 2001 12:03
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?
Posted by Ilya Semenov (NSU) 28 Mar 2001 22:09
> 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?
Posted by A. Mironenko 6 Apr 2001 19:30
> 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