結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,688 KB
testcase_01 AC 132 ms
41,196 KB
testcase_02 AC 131 ms
41,432 KB
testcase_03 AC 130 ms
41,524 KB
testcase_04 AC 127 ms
41,472 KB
testcase_05 AC 131 ms
41,404 KB
testcase_06 WA -
testcase_07 AC 134 ms
41,344 KB
testcase_08 AC 132 ms
41,588 KB
testcase_09 WA -
testcase_10 AC 131 ms
41,568 KB
testcase_11 WA -
testcase_12 AC 132 ms
41,396 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 130 ms
41,544 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(result);

    }
}

0