|
|
back to boardIf you want to use Java BigDecimal You can get AC with import java.math.BigDecimal, but in this case you should format output this way: import java.text.DecimalFormat; DecimalFormat df = new DecimalFormat("0.000000000000000000##E0"); out.write(df.format(answer).replace('E', 'e').replace(',', '.')); where answer is your sum of the sequence. |
|
|