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

Common Board

to Marat Bakirov (about Building Towers)
Posted by snake 22 Nov 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
Posted by Li, Yi 22 Nov 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
Posted by Li, Yi 22 Nov 2001 16:13
You may send me an e-mail: lee-e.@263.net
Test cases for this problem should be more difficult.
Posted by HNT 23 Nov 2001 21:44