結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 128 ms
41,368 KB
testcase_04 AC 128 ms
41,416 KB
testcase_05 WA -
testcase_06 AC 131 ms
41,104 KB
testcase_07 AC 128 ms
41,576 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 129 ms
41,848 KB
testcase_13 AC 128 ms
41,212 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 116 ms
39,888 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

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

        //出力
        	System.out.println(result);

    }
}
0