結果
| 問題 |
No.81 すべて足すだけの簡単なお仕事です。
|
| コンテスト | |
| ユーザー |
holeguma
|
| 提出日時 | 2015-08-14 15:16:11 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 466 bytes |
| コンパイル時間 | 1,858 ms |
| コンパイル使用メモリ | 74,636 KB |
| 実行使用メモリ | 53,136 KB |
| 最終ジャッジ日時 | 2024-07-18 09:22:54 |
| 合計ジャッジ時間 | 4,491 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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.println(x);
out.flush();
}
}
holeguma