結果

問題 No.46 はじめのn歩
ユーザー トミートミー
提出日時 2024-03-31 17:53:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 3,075 ms
コンパイル使用メモリ 74,060 KB
実行使用メモリ 57,972 KB
最終ジャッジ日時 2024-03-31 17:53:28
合計ジャッジ時間 4,003 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,244 KB
testcase_01 AC 133 ms
57,972 KB
testcase_02 AC 139 ms
57,832 KB
testcase_03 AC 131 ms
57,844 KB
testcase_04 AC 129 ms
57,716 KB
testcase_05 AC 132 ms
57,840 KB
testcase_06 AC 130 ms
57,960 KB
testcase_07 AC 129 ms
57,952 KB
testcase_08 AC 127 ms
56,068 KB
testcase_09 AC 124 ms
57,948 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();
        System.out.println(b % a == 0 ? b / a : b / a + 1);

        sc.close();

    }
}
0