結果

問題 No.46 はじめのn歩
ユーザー suiginginsuigingin
提出日時 2015-07-07 23:17:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 3,546 ms
コンパイル使用メモリ 71,308 KB
実行使用メモリ 55,832 KB
最終ジャッジ日時 2023-09-22 09:24:46
合計ジャッジ時間 5,016 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,760 KB
testcase_01 AC 117 ms
55,376 KB
testcase_02 AC 118 ms
55,648 KB
testcase_03 AC 119 ms
55,628 KB
testcase_04 AC 119 ms
55,664 KB
testcase_05 AC 119 ms
55,832 KB
testcase_06 AC 117 ms
55,696 KB
testcase_07 AC 120 ms
55,432 KB
testcase_08 AC 118 ms
55,740 KB
testcase_09 AC 119 ms
55,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No_046 {
	Scanner sc = new Scanner(System.in);

	void run() {
		int a = sc.nextInt();
		int b = sc.nextInt();
		System.out.println(b / a + ((b % a != 0) ? 1 : 0));
	}

	public static void main(String[] args) {
		new No_046().run();
	}
}
0