結果

問題 No.379 五円硬貨
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-04 13:35:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 601 bytes
コンパイル時間 1,803 ms
コンパイル使用メモリ 72,008 KB
実行使用メモリ 49,684 KB
最終ジャッジ日時 2023-10-12 07:56:41
合計ジャッジ時間 3,519 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
49,324 KB
testcase_01 AC 40 ms
47,476 KB
testcase_02 AC 40 ms
47,168 KB
testcase_03 AC 40 ms
49,684 KB
testcase_04 AC 41 ms
49,244 KB
testcase_05 AC 42 ms
49,224 KB
testcase_06 AC 41 ms
49,428 KB
testcase_07 AC 41 ms
49,352 KB
testcase_08 AC 41 ms
49,460 KB
testcase_09 AC 40 ms
49,532 KB
testcase_10 AC 40 ms
49,332 KB
testcase_11 AC 41 ms
49,136 KB
testcase_12 AC 41 ms
49,232 KB
testcase_13 AC 41 ms
49,612 KB
testcase_14 AC 41 ms
33,244 KB
testcase_15 AC 41 ms
33,252 KB
testcase_16 AC 40 ms
33,312 KB
testcase_17 AC 41 ms
33,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import static java.lang.System.in;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        long N = Long.parseLong(inputs[0]);
        long G = Long.parseLong(inputs[1]);
        long V = Long.parseLong(inputs[2]);

        long numOf5Yen = N / 5;
        long gas = numOf5Yen * G;
        System.out.println((double)gas / V);
    }
}
0