結果
問題 | No.81 すべて足すだけの簡単なお仕事です。 |
ユーザー | ルッツファン |
提出日時 | 2015-11-28 05:42:21 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,041 bytes |
コンパイル時間 | 3,186 ms |
コンパイル使用メモリ | 72,680 KB |
実行使用メモリ | 58,144 KB |
最終ジャッジ日時 | 2023-10-12 05:04:10 |
合計ジャッジ時間 | 7,817 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 111 ms
55,692 KB |
testcase_01 | AC | 112 ms
55,688 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 113 ms
56,136 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 115 ms
55,832 KB |
testcase_10 | AC | 113 ms
56,024 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 111 ms
55,748 KB |
testcase_14 | AC | 110 ms
56,028 KB |
testcase_15 | WA | - |
testcase_16 | AC | 111 ms
55,964 KB |
testcase_17 | AC | 111 ms
55,632 KB |
testcase_18 | WA | - |
testcase_19 | AC | 112 ms
55,808 KB |
testcase_20 | AC | 112 ms
55,820 KB |
testcase_21 | AC | 111 ms
55,440 KB |
testcase_22 | AC | 109 ms
55,860 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | AC | 111 ms
55,428 KB |
testcase_26 | AC | 110 ms
55,636 KB |
testcase_27 | AC | 110 ms
55,440 KB |
testcase_28 | AC | 112 ms
55,812 KB |
testcase_29 | WA | - |
ソースコード
package yukicoder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.math.BigDecimal; public class yukicoder012 { public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String tes = null; try { tes = br.readLine(); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } BigDecimal one = new BigDecimal("0.00"); BigDecimal two = null; long r = Long.parseLong(tes); double d = 0d; double tmp = 0d; for(int i=0;i<r;i++){ try { tes = br.readLine(); } catch (IOException e) { // TODO 自動生成された catch ブロック e.printStackTrace(); } //tmp = Double.parseDouble(tes); two = new BigDecimal(tes); //d = tmp + d; one = one.add(two); //System.out.println(one.doubleValue()); } d = one.doubleValue(); String s = String.format("%.10f",d); System.out.println(s); } }