結果

問題 No.379 五円硬貨
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-08-07 10:35:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 1,000 ms
コード長 361 bytes
コンパイル時間 3,190 ms
コンパイル使用メモリ 77,368 KB
実行使用メモリ 41,496 KB
最終ジャッジ日時 2024-04-24 21:59:11
合計ジャッジ時間 6,684 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
41,384 KB
testcase_01 AC 134 ms
41,236 KB
testcase_02 AC 130 ms
41,284 KB
testcase_03 AC 117 ms
39,776 KB
testcase_04 AC 131 ms
40,996 KB
testcase_05 AC 135 ms
41,496 KB
testcase_06 AC 118 ms
40,120 KB
testcase_07 AC 131 ms
41,060 KB
testcase_08 AC 130 ms
41,344 KB
testcase_09 AC 133 ms
41,160 KB
testcase_10 AC 131 ms
40,984 KB
testcase_11 AC 134 ms
41,012 KB
testcase_12 AC 133 ms
40,976 KB
testcase_13 AC 123 ms
40,400 KB
testcase_14 AC 133 ms
41,076 KB
testcase_15 AC 116 ms
40,152 KB
testcase_16 AC 134 ms
41,376 KB
testcase_17 AC 133 ms
41,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double n = in.nextInt();
        double g = in.nextInt();
        double v = in.nextInt();

        int goen = (int)n / 5;
        double ans = (goen * g) / v;

        System.out.println(ans);

        in.close();
    }
}
0