結果

問題 No.46 はじめのn歩
ユーザー l1267976l1267976
提出日時 2017-03-07 20:51:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 328 bytes
コンパイル時間 3,316 ms
コンパイル使用メモリ 71,868 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-09-05 22:33:25
合計ジャッジ時間 5,158 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,780 KB
testcase_01 AC 123 ms
55,852 KB
testcase_02 AC 123 ms
56,080 KB
testcase_03 AC 123 ms
55,888 KB
testcase_04 AC 121 ms
55,656 KB
testcase_05 AC 126 ms
55,508 KB
testcase_06 AC 122 ms
56,196 KB
testcase_07 AC 120 ms
56,064 KB
testcase_08 AC 123 ms
56,088 KB
testcase_09 AC 125 ms
55,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {

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

        int result = b / a;
        if (b % a != 0) result++;

        System.out.println(result);

        sc.close();
    }

}
0