結果

問題 No.379 五円硬貨
ユーザー ontama_12ontama_12
提出日時 2016-09-23 10:25:32
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 540 bytes
コンパイル時間 2,279 ms
コンパイル使用メモリ 74,028 KB
実行使用メモリ 41,332 KB
最終ジャッジ日時 2024-04-28 21:25:09
合計ジャッジ時間 5,163 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
40,988 KB
testcase_01 AC 129 ms
41,012 KB
testcase_02 AC 129 ms
41,128 KB
testcase_03 AC 133 ms
41,292 KB
testcase_04 AC 115 ms
39,744 KB
testcase_05 AC 115 ms
39,928 KB
testcase_06 WA -
testcase_07 AC 134 ms
40,944 KB
testcase_08 AC 135 ms
41,104 KB
testcase_09 WA -
testcase_10 AC 119 ms
40,172 KB
testcase_11 WA -
testcase_12 AC 120 ms
40,100 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 135 ms
41,160 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
//入力文字をの読み取り
    	Scanner sc = new Scanner(System.in);
//一文字目
        long money = sc.nextInt();
        //二文字目
        long gas = sc.nextInt();
      //3文字目
        long volume = sc.nextInt();

        //現在所持金からの5円硬貨を算出
        long fivemoney = money/5;
        double result =fivemoney*gas/volume;

        //出力
        	System.out.println(fivemoney*gas/volume);

    }
}
0