結果

問題 No.379 五円硬貨
ユーザー sougo002sougo002
提出日時 2016-06-30 01:09:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 3,038 ms
コンパイル使用メモリ 76,004 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2024-04-20 04:13:53
合計ジャッジ時間 5,647 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
54,124 KB
testcase_01 AC 113 ms
53,900 KB
testcase_02 AC 109 ms
53,996 KB
testcase_03 AC 100 ms
52,780 KB
testcase_04 WA -
testcase_05 AC 102 ms
52,948 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 104 ms
52,764 KB
testcase_09 WA -
testcase_10 AC 110 ms
54,020 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 103 ms
53,032 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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