結果

問題 No.46 はじめのn歩
ユーザー d_makid_maki
提出日時 2019-03-11 16:29:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 3,411 ms
コンパイル使用メモリ 72,252 KB
実行使用メモリ 58,076 KB
最終ジャッジ日時 2023-09-05 20:11:44
合計ジャッジ時間 5,469 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,480 KB
testcase_01 AC 120 ms
55,780 KB
testcase_02 AC 122 ms
55,752 KB
testcase_03 WA -
testcase_04 AC 126 ms
55,452 KB
testcase_05 WA -
testcase_06 AC 119 ms
55,760 KB
testcase_07 WA -
testcase_08 AC 120 ms
55,532 KB
testcase_09 AC 119 ms
55,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {
	private static final String k = " ";

	public static void main(String[] args) {
		String input = null;
		Scanner sc = new Scanner(System.in);
		input = sc.nextLine();
		String[] split = input.split(k);
		int a = Integer.parseInt(split[0]);
		int b = Integer.parseInt(split[1]);
		double c;

		c = (double) b / a;
		System.out.println(Math.round(c));
		sc.close();
	}

}
0