結果

問題 No.46 はじめのn歩
ユーザー omuretsu2omuretsu2
提出日時 2016-05-10 01:37:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 378 bytes
コンパイル時間 2,168 ms
コンパイル使用メモリ 72,696 KB
実行使用メモリ 37,136 KB
最終ジャッジ日時 2024-04-15 15:01:38
合計ジャッジ時間 3,272 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
37,136 KB
testcase_01 AC 54 ms
36,944 KB
testcase_02 AC 54 ms
36,956 KB
testcase_03 AC 54 ms
37,040 KB
testcase_04 AC 53 ms
36,588 KB
testcase_05 AC 53 ms
36,644 KB
testcase_06 AC 53 ms
36,908 KB
testcase_07 AC 54 ms
36,732 KB
testcase_08 AC 54 ms
37,120 KB
testcase_09 AC 53 ms
37,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

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

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

		if(b%a > 0){
			System.out.println((b/a)+1);
		} else {
			System.out.println(b/a);
		}
	}
}
0