結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
holeguma
|
| 提出日時 | 2015-08-14 15:19:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 1,856 ms |
| コンパイル使用メモリ | 74,976 KB |
| 実行使用メモリ | 55,908 KB |
| 最終ジャッジ日時 | 2024-07-18 09:23:21 |
| 合計ジャッジ時間 | 6,244 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("%.3f",x);
out.flush();
}
}
holeguma