結果

問題 No.379 五円硬貨
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-24 00:32:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 494 bytes
コンパイル時間 3,118 ms
コンパイル使用メモリ 75,124 KB
実行使用メモリ 55,844 KB
最終ジャッジ日時 2024-04-20 00:17:00
合計ジャッジ時間 5,954 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.BigDecimal;

public class Exercise117{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    BigDecimal n = new BigDecimal(sc.next());
    BigDecimal g = new BigDecimal(sc.next());
    BigDecimal v = new BigDecimal(sc.next());
    BigDecimal sum = n.divide(BigDecimal.valueOf(5), 0, BigDecimal.ROUND_FLOOR).multiply(g);
    System.out.println(sum);
    System.out.println(sum.divide(v, 14, BigDecimal.ROUND_FLOOR));
  }
}
0