結果

問題 No.350 d=vt
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 21:08:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 154 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 3,618 ms
コンパイル使用メモリ 74,512 KB
実行使用メモリ 42,028 KB
最終ジャッジ日時 2024-04-15 10:39:46
合計ジャッジ時間 6,715 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
41,760 KB
testcase_01 AC 148 ms
41,912 KB
testcase_02 AC 147 ms
41,684 KB
testcase_03 AC 147 ms
41,520 KB
testcase_04 AC 151 ms
41,764 KB
testcase_05 AC 149 ms
41,920 KB
testcase_06 AC 145 ms
41,504 KB
testcase_07 AC 147 ms
41,736 KB
testcase_08 AC 149 ms
41,700 KB
testcase_09 AC 148 ms
41,868 KB
testcase_10 AC 154 ms
41,752 KB
testcase_11 AC 154 ms
42,028 KB
testcase_12 AC 146 ms
41,804 KB
testcase_13 AC 146 ms
41,812 KB
testcase_14 AC 148 ms
41,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		double v = sc.nextDouble();
		int t = sc.nextInt(), v2;
		v *= 10000;
		v += 0.1;
		v2 = (int)v;
		System.out.println(v2*t/10000);

	}
}
0