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

Обсуждение задачи 1265. Зеркало

Burunduk1 C and Pascal [8] // Задача 1265. Зеркало 29 сен 2005 13:05
There are 2 same solutions (C, Pascal).
   C   solution gets WA, 9
Pascal solution gets AC

Why??? Please, give me some hints about it.
Ivankov Dmitry I think it's precision problems ) [7] // Задача 1265. Зеркало 29 сен 2005 22:02
For example (sizeof(long double) == 8)
Burunduk1 Re: I think it's precision problems ) [6] // Задача 1265. Зеркало 29 сен 2005 22:28
I thought it's so only in Visual C.
GNU C and Borland C compilers use sizeof(long double) = 10.
Am I right?
Ivankov Dmitry Re: I think it's precision problems ) // Задача 1265. Зеркало 29 сен 2005 22:54
Yes.
But as far as I know Intel C++ compiler is used there. And in ICL (at least in 8.1) sizeof(long double)==8
Vladimir Yakovlev (USU) This problem suppose using of long arithmetics (-) [4] // Задача 1265. Зеркало 29 сен 2005 22:57
Burunduk1 Re: This problem suppose using of long arithmetics (-) [3] // Задача 1265. Зеркало 30 сен 2005 00:14
Of course!
But solution without it is more short and beauty. :)
And it's more interesting to solve problem
using only Extended.
But if juri suppose exact numbers
when answer is unequivocal it would be funny
try adjust eps-heuristics. Next time you would be killed by
rejujement.
I have Ac using 120-digits integers and dot-product as angle haracteristics. Thus use only +,-,*,<,==.
Vedernikoff Sergey Re: This problem suppose using of long arithmetics (-) [1] // Задача 1265. Зеркало 6 фев 2007 13:38
My program doesn't use any long arithmetics - only standard Pascal's real (or extended?) type, and it hasn't any problem with accepting this problem. If jury assumed using long arithmetics, then testset is very weak...
DixonD (Lviv NU) Re: This problem suppose using of long arithmetics (-) // Задача 1265. Зеркало 13 апр 2007 17:25
Could anybody say me how find point, symmetrical to given point relatively some line?
Without division...
Thanks