結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,092 KB
testcase_01 AC 133 ms
41,076 KB
testcase_02 AC 117 ms
40,088 KB
testcase_03 AC 126 ms
40,780 KB
testcase_04 WA -
testcase_05 AC 133 ms
41,000 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 128 ms
41,076 KB
testcase_09 WA -
testcase_10 AC 131 ms
40,884 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 130 ms
41,016 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
//入力文字をの読み取り
    	Scanner sc = new Scanner(System.in);
//一文字目
        int money = sc.nextInt();
        //二文字目
        int gas = sc.nextInt();
      //3文字目
        int volume = sc.nextInt();
        
        //現在所持金からの5円硬貨を算出
        int fivemoney = money/5;
        
        //出力
        	System.out.println(fivemoney*gas/volume);
        
    }
}
0