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 1058. Chocolate

Achtung!
Posted by Igor Y. Ludov 17 Sep 2005 07:51
This problem contains one unobvious and unpleasant trick. In statement it is said that result must be output with "accuracy to 0.0001". But in fact you must output result rounded up to fourth digit after decimal point. So, if you output answer with some additional precision, you'll get WA. For example, I got "Accepted" when corrected line
  writeln (finres:0:5);
to
  writeln (finres:0:4);
in my program.
Re: Achtung!
Posted by DWED 24 Jul 2008 18:29
It means that your solution is not very accurate. My solution outputs a value "as is" without any truncation (just System.out.println(min);) and gets AC.