結果

問題 No.379 五円硬貨
ユーザー sougo002sougo002
提出日時 2016-06-30 01:12:15
言語 Java19
(openjdk 21)
結果
AC  
実行時間 115 ms / 1,000 ms
コード長 389 bytes
コンパイル時間 2,877 ms
コンパイル使用メモリ 71,480 KB
実行使用メモリ 56,428 KB
最終ジャッジ日時 2023-08-02 04:01:59
合計ジャッジ時間 5,853 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
55,552 KB
testcase_01 AC 110 ms
55,928 KB
testcase_02 AC 114 ms
56,196 KB
testcase_03 AC 109 ms
55,700 KB
testcase_04 AC 115 ms
56,004 KB
testcase_05 AC 112 ms
56,172 KB
testcase_06 AC 110 ms
56,084 KB
testcase_07 AC 106 ms
55,932 KB
testcase_08 AC 107 ms
56,132 KB
testcase_09 AC 110 ms
55,828 KB
testcase_10 AC 111 ms
53,788 KB
testcase_11 AC 109 ms
56,428 KB
testcase_12 AC 108 ms
56,264 KB
testcase_13 AC 108 ms
55,812 KB
testcase_14 AC 114 ms
56,168 KB
testcase_15 AC 112 ms
55,944 KB
testcase_16 AC 113 ms
56,132 KB
testcase_17 AC 114 ms
56,196 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