結果

問題 No.379 五円硬貨
ユーザー fkwnw3_1243
提出日時 2017-05-04 13:35:05
言語 Java
(openjdk 23)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 601 bytes
コンパイル時間 2,028 ms
コンパイル使用メモリ 74,676 KB
実行使用メモリ 46,336 KB
最終ジャッジ日時 2024-09-14 07:04:50
合計ジャッジ時間 3,890 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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