結果

問題 No.350 d=vt
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-17 13:00:06
言語 Java19
(openjdk 21)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 661 bytes
コンパイル時間 3,870 ms
コンパイル使用メモリ 72,044 KB
実行使用メモリ 50,376 KB
最終ジャッジ日時 2023-07-28 00:35:34
合計ジャッジ時間 4,603 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,872 KB
testcase_01 AC 44 ms
49,920 KB
testcase_02 AC 45 ms
49,808 KB
testcase_03 AC 45 ms
49,824 KB
testcase_04 AC 44 ms
49,948 KB
testcase_05 AC 45 ms
50,076 KB
testcase_06 AC 45 ms
49,828 KB
testcase_07 AC 44 ms
50,136 KB
testcase_08 AC 44 ms
49,952 KB
testcase_09 AC 45 ms
49,920 KB
testcase_10 AC 46 ms
49,920 KB
testcase_11 AC 45 ms
49,956 KB
testcase_12 AC 47 ms
49,960 KB
testcase_13 AC 45 ms
50,376 KB
testcase_14 AC 44 ms
49,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;

import static java.lang.System.in;

public class No350 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));

        String[] inputs = reader.readLine().split(" ");
        double v = Double.parseDouble(inputs[0]);
        int t = Integer.parseInt(inputs[1]);

        System.out.println(solve(v, t));
    }

    public static int solve(double v, int t) {

        return BigDecimal.valueOf(v).multiply(BigDecimal.valueOf(t)).intValue();
    }
}
0