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

Общий форум

to Marat Bakirov (about Building Towers)
Послано snake 22 ноя 2001 12:47
i'm sure the standard solution is wrong.
because i found a bug in delphi (but not borland pascal7.0):

var
  a, b: comp;
begin
  a := 14045313212390432.0;
  b := 15606337563182702.0;
  writeln(a + b: 0 : 0);
end.

my friend .free using delphi and comp get accept
i use the same algorithm but c++ and get wrong answer
I
Послано Li, Yi 22 ноя 2001 16:12
> i'm sure the standard solution is wrong.
> because i found a bug in delphi (but not borland
pascal7.0):
>
> var
>   a, b: comp;
> begin
>   a := 14045313212390432.0;
>   b := 15606337563182702.0;
>   writeln(a + b: 0 : 0);
> end.
>
> my friend .free using delphi and comp get accept
> i use the same algorithm but c++ and get wrong answer
>
I'd like to know what is the solution to this problem
Послано Li, Yi 22 ноя 2001 16:13
You may send me an e-mail: lee-e.@263.net
Test cases for this problem should be more difficult.
Послано HNT 23 ноя 2001 21:44