結果

問題 No.46 はじめのn歩
ユーザー kano_townkano_town
提出日時 2014-11-18 14:52:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 454 bytes
コンパイル時間 2,935 ms
コンパイル使用メモリ 71,728 KB
実行使用メモリ 49,732 KB
最終ジャッジ日時 2023-08-30 20:33:17
合計ジャッジ時間 4,010 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,332 KB
testcase_01 AC 41 ms
49,488 KB
testcase_02 AC 42 ms
49,732 KB
testcase_03 AC 41 ms
49,240 KB
testcase_04 AC 41 ms
49,496 KB
testcase_05 AC 41 ms
49,376 KB
testcase_06 AC 41 ms
49,440 KB
testcase_07 AC 40 ms
49,336 KB
testcase_08 AC 41 ms
49,308 KB
testcase_09 AC 42 ms
49,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] buf = br.readLine().split(" ");

		int a = Integer.parseInt(buf[0]);
		int b = Integer.parseInt(buf[1]);

		System.out.println((int) Math.ceil((double) b / (double) a));
	}
}
0