結果

問題 No.379 五円硬貨
ユーザー noiunoiu
提出日時 2016-06-30 01:55:45
言語 Java19
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 389 bytes
コンパイル時間 2,994 ms
コンパイル使用メモリ 71,988 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-08-02 04:04:04
合計ジャッジ時間 6,106 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,940 KB
testcase_01 AC 118 ms
55,832 KB
testcase_02 AC 119 ms
55,744 KB
testcase_03 AC 118 ms
56,056 KB
testcase_04 AC 122 ms
55,700 KB
testcase_05 AC 118 ms
55,732 KB
testcase_06 AC 117 ms
56,052 KB
testcase_07 AC 120 ms
55,716 KB
testcase_08 AC 120 ms
55,844 KB
testcase_09 AC 119 ms
55,812 KB
testcase_10 AC 120 ms
55,816 KB
testcase_11 AC 120 ms
55,892 KB
testcase_12 AC 121 ms
55,552 KB
testcase_13 AC 120 ms
56,320 KB
testcase_14 AC 120 ms
55,992 KB
testcase_15 AC 122 ms
55,972 KB
testcase_16 AC 121 ms
54,144 KB
testcase_17 AC 118 ms
55,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class TGMain {
    
    public static void main(String[] args){
        double G, V, N, b;
        int a;
        double ans;
        Scanner sc = new Scanner(System.in);
        
        N = sc.nextInt();
        G = sc.nextInt();
        V = sc.nextInt();
        a = (int)N/5;
        b = G*a;
        ans = b/V;
        System.out.println(ans);
    }
}
0