結果

問題 No.46 はじめのn歩
ユーザー HaleakalaHaleakala
提出日時 2018-02-18 15:57:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 5,000 ms
コード長 341 bytes
コンパイル時間 5,063 ms
コンパイル使用メモリ 72,560 KB
実行使用メモリ 56,572 KB
最終ジャッジ日時 2023-09-06 18:39:28
合計ジャッジ時間 6,397 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,816 KB
testcase_01 AC 112 ms
55,956 KB
testcase_02 AC 111 ms
55,784 KB
testcase_03 AC 116 ms
55,332 KB
testcase_04 AC 111 ms
55,796 KB
testcase_05 AC 111 ms
55,776 KB
testcase_06 AC 112 ms
56,168 KB
testcase_07 AC 110 ms
55,708 KB
testcase_08 AC 117 ms
56,040 KB
testcase_09 AC 114 ms
56,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {
	public static void main(String str[]) {
        Scanner sc = new Scanner(System.in);

        int a = Integer.valueOf(sc.next());
        int b = Integer.valueOf(sc.next());

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

        System.out.println(step);

	}
}
0