結果

問題 No.350 d=vt
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-21 21:00:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 2,340 ms
コンパイル使用メモリ 77,832 KB
実行使用メモリ 41,972 KB
最終ジャッジ日時 2024-04-15 10:41:03
合計ジャッジ時間 5,404 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
41,396 KB
testcase_01 AC 139 ms
41,200 KB
testcase_02 AC 141 ms
41,532 KB
testcase_03 AC 142 ms
41,768 KB
testcase_04 AC 145 ms
41,496 KB
testcase_05 AC 146 ms
41,756 KB
testcase_06 AC 140 ms
41,912 KB
testcase_07 AC 139 ms
41,556 KB
testcase_08 AC 138 ms
41,864 KB
testcase_09 AC 140 ms
41,972 KB
testcase_10 AC 145 ms
41,684 KB
testcase_11 AC 140 ms
41,568 KB
testcase_12 AC 140 ms
41,728 KB
testcase_13 AC 142 ms
41,628 KB
testcase_14 AC 141 ms
41,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String vSt = sc.next();
        String []arr=vSt.split("\\.");
        int v = Integer.parseInt(arr[1]);
        int t = sc.nextInt();
        int d = v*t/10000;
        System.out.println(d);
    }
}
0