結果
問題 | No.350 d=vt |
ユーザー |
![]() |
提出日時 | 2017-09-17 13:00:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 661 bytes |
コンパイル時間 | 3,318 ms |
コンパイル使用メモリ | 74,888 KB |
実行使用メモリ | 37,632 KB |
最終ジャッジ日時 | 2024-10-05 05:35:42 |
合計ジャッジ時間 | 4,733 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
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(); } }