結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
holeguma
|
| 提出日時 | 2015-08-14 15:19:29 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 473 bytes |
| コンパイル時間 | 1,942 ms |
| コンパイル使用メモリ | 75,928 KB |
| 実行使用メモリ | 41,864 KB |
| 最終ジャッジ日時 | 2024-07-18 09:23:28 |
| 合計ジャッジ時間 | 6,220 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 30 |
ソースコード
import java.io.*;
import java.math.*;
class Main{
static final PrintWriter out=new PrintWriter(System.out);
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String line="";
BigDecimal x=new BigDecimal("0.0");
while((line=br.readLine())!=null&&!line.isEmpty()){
BigDecimal y=new BigDecimal(line);
x=x.add(y);
}
x=x.setScale(10,RoundingMode.HALF_UP);
out.printf("%.10f",x);
out.flush();
}
}
holeguma