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 1248. Sequence Sum

Output format
Posted by Fyodor Menshikov 11 Apr 2010 13:12
Checker accepts any number of digits in mantissa, so it is possible to output just exact answer having all digits. Rounding to 19 digits or appending zeros to 19 digits is not required.

For answer calculated in java.math.BigDecimal the following simple statement works:
out.println(sum.toPlainString() + "e0");
Re: Output format
Posted by Valentin (PSU) 6 Sep 2010 19:42
Big thanks!