結果

問題 No.350 d=vt
ユーザー kenji_shioya
提出日時 2016-06-02 17:31:57
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 341 bytes
コンパイル時間 3,803 ms
コンパイル使用メモリ 78,228 KB
実行使用メモリ 41,984 KB
最終ジャッジ日時 2024-10-05 04:55:40
合計ジャッジ時間 6,450 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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