結果

問題 No.350 d=vt
ユーザー htensaihtensai
提出日時 2019-11-21 16:50:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 1,875 ms
コンパイル使用メモリ 75,160 KB
実行使用メモリ 41,624 KB
最終ジャッジ日時 2024-04-18 12:15:17
合計ジャッジ時間 4,353 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
41,232 KB
testcase_01 AC 119 ms
41,304 KB
testcase_02 AC 114 ms
41,156 KB
testcase_03 AC 122 ms
41,184 KB
testcase_04 AC 124 ms
41,408 KB
testcase_05 AC 126 ms
40,976 KB
testcase_06 AC 123 ms
41,364 KB
testcase_07 AC 106 ms
41,228 KB
testcase_08 AC 112 ms
41,316 KB
testcase_09 AC 126 ms
41,484 KB
testcase_10 AC 109 ms
41,624 KB
testcase_11 AC 105 ms
39,928 KB
testcase_12 AC 122 ms
41,108 KB
testcase_13 AC 121 ms
41,368 KB
testcase_14 AC 123 ms
41,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
 	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] arr = sc.next().toCharArray();
		int speed = 0;
		for (int i = 2; i < arr.length; i++) {
		    speed *= 10;
		    speed += arr[i] - '0';
		}
		int t = sc.nextInt();
		System.out.println(speed * t / 10000);
	}
}
0