結果

問題 No.350 d=vt
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-17 13:00:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 661 bytes
コンパイル時間 3,252 ms
コンパイル使用メモリ 74,856 KB
実行使用メモリ 37,864 KB
最終ジャッジ日時 2024-04-15 10:52:00
合計ジャッジ時間 4,764 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
37,556 KB
testcase_01 AC 57 ms
37,080 KB
testcase_02 AC 59 ms
37,736 KB
testcase_03 AC 57 ms
37,652 KB
testcase_04 AC 56 ms
37,624 KB
testcase_05 AC 58 ms
37,476 KB
testcase_06 AC 58 ms
37,336 KB
testcase_07 AC 58 ms
37,744 KB
testcase_08 AC 57 ms
37,832 KB
testcase_09 AC 58 ms
37,864 KB
testcase_10 AC 56 ms
37,372 KB
testcase_11 AC 56 ms
37,568 KB
testcase_12 AC 57 ms
37,728 KB
testcase_13 AC 56 ms
37,832 KB
testcase_14 AC 56 ms
37,588 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