結果

問題 No.46 はじめのn歩
ユーザー nglkrianbrjfnglkrianbrjf
提出日時 2016-02-27 02:23:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 546 bytes
コンパイル時間 2,833 ms
コンパイル使用メモリ 74,864 KB
実行使用メモリ 53,584 KB
最終ジャッジ日時 2023-10-24 18:10:43
合計ジャッジ時間 3,866 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
53,576 KB
testcase_01 AC 49 ms
52,500 KB
testcase_02 AC 49 ms
53,568 KB
testcase_03 AC 48 ms
52,496 KB
testcase_04 AC 48 ms
53,576 KB
testcase_05 AC 48 ms
51,608 KB
testcase_06 AC 48 ms
53,576 KB
testcase_07 AC 48 ms
53,584 KB
testcase_08 AC 49 ms
53,580 KB
testcase_09 AC 48 ms
53,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Question46 {
	public static void main(String[] args) {
		int a, b;
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);

		try{
			String buf = br.readLine();
			String[] tmp = buf.split(" ");
			a = Integer.parseInt(tmp[0]);
			b = Integer.parseInt(tmp[1]);
		}catch(Exception e){
			System.out.println(e);
			return;
		}

		int result = b / a;

		if((b % a) != 0) result ++;
		System.out.println(result);

	}
}
0