結果

問題 No.350 d=vt
ユーザー kenji_shioyakenji_shioya
提出日時 2016-06-02 17:31:57
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 341 bytes
コンパイル時間 4,253 ms
コンパイル使用メモリ 77,836 KB
実行使用メモリ 42,236 KB
最終ジャッジ日時 2024-04-15 10:33:17
合計ジャッジ時間 7,875 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 180 ms
42,076 KB
testcase_01 AC 185 ms
41,600 KB
testcase_02 AC 190 ms
41,444 KB
testcase_03 AC 181 ms
41,760 KB
testcase_04 AC 180 ms
41,920 KB
testcase_05 AC 180 ms
41,652 KB
testcase_06 AC 179 ms
41,756 KB
testcase_07 AC 176 ms
41,984 KB
testcase_08 AC 179 ms
41,972 KB
testcase_09 AC 179 ms
41,696 KB
testcase_10 AC 195 ms
41,584 KB
testcase_11 RE -
testcase_12 AC 186 ms
41,992 KB
testcase_13 AC 178 ms
41,868 KB
testcase_14 AC 179 ms
41,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise49{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    double v = sc.nextDouble() + 0.00001;
    int t = sc.nextInt();

    String numStr = String.valueOf(v);
    int vd = Integer.parseInt(numStr.substring(2, 6));

    System.out.println(vd * t / 10000);
  }
}
0