ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1075. Нитка в пространстве

To admin : Maybe an error is tests?
Послано Somov Alexander (YH) 27 мар 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?
Послано Ilya Semenov (NSU) 28 мар 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?
Послано A. Mironenko 6 апр 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