結果

問題 No.46 はじめのn歩
ユーザー arito_asuarito_asu
提出日時 2020-07-03 07:22:55
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 310 bytes
コンパイル時間 1,797 ms
コンパイル使用メモリ 70,976 KB
実行使用メモリ 56,348 KB
最終ジャッジ日時 2023-10-14 22:12:10
合計ジャッジ時間 3,701 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,716 KB
testcase_01 AC 118 ms
55,664 KB
testcase_02 AC 118 ms
55,708 KB
testcase_03 AC 116 ms
56,348 KB
testcase_04 AC 116 ms
56,012 KB
testcase_05 AC 119 ms
56,164 KB
testcase_06 AC 120 ms
55,844 KB
testcase_07 AC 119 ms
55,772 KB
testcase_08 AC 120 ms
56,232 KB
testcase_09 AC 119 ms
55,828 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();
        int c = b / a;
        if (b % a > 0) {
            c++;
        }
        System.out.println(c);
    }
}
0