結果

問題 No.46 はじめのn歩
ユーザー omc-testomc-test
提出日時 2016-08-03 17:20:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 1,935 ms
コンパイル使用メモリ 74,120 KB
実行使用メモリ 41,124 KB
最終ジャッジ日時 2024-04-24 15:14:45
合計ジャッジ時間 3,666 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
41,072 KB
testcase_01 AC 107 ms
40,792 KB
testcase_02 AC 115 ms
41,040 KB
testcase_03 AC 114 ms
40,244 KB
testcase_04 AC 104 ms
40,008 KB
testcase_05 AC 114 ms
41,052 KB
testcase_06 AC 115 ms
40,328 KB
testcase_07 AC 124 ms
41,124 KB
testcase_08 AC 111 ms
41,048 KB
testcase_09 AC 113 ms
40,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int step = b / a;
		if(b % a != 0){
			step++;
		}
		System.out.println(step);
	}
}
0