結果

問題 No.379 五円硬貨
ユーザー sougo002sougo002
提出日時 2016-06-30 01:12:15
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 389 bytes
コンパイル時間 2,895 ms
コンパイル使用メモリ 73,768 KB
実行使用メモリ 54,376 KB
最終ジャッジ日時 2024-04-20 04:14:24
合計ジャッジ時間 5,675 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
52,840 KB
testcase_01 AC 111 ms
52,748 KB
testcase_02 AC 104 ms
53,080 KB
testcase_03 AC 118 ms
54,104 KB
testcase_04 AC 124 ms
54,028 KB
testcase_05 AC 103 ms
53,084 KB
testcase_06 AC 105 ms
53,196 KB
testcase_07 AC 114 ms
54,372 KB
testcase_08 AC 118 ms
54,204 KB
testcase_09 AC 107 ms
53,060 KB
testcase_10 AC 107 ms
53,084 KB
testcase_11 AC 115 ms
54,076 KB
testcase_12 AC 106 ms
53,288 KB
testcase_13 AC 116 ms
54,188 KB
testcase_14 AC 118 ms
54,376 KB
testcase_15 AC 121 ms
54,180 KB
testcase_16 AC 124 ms
54,056 KB
testcase_17 AC 112 ms
54,056 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