結果

問題 No.46 はじめのn歩
ユーザー asf asfasf asf
提出日時 2020-05-14 06:57:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 5,808 ms
コンパイル使用メモリ 72,304 KB
実行使用メモリ 56,180 KB
最終ジャッジ日時 2023-10-12 20:23:53
合計ジャッジ時間 5,632 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,028 KB
testcase_01 AC 118 ms
56,180 KB
testcase_02 AC 119 ms
55,936 KB
testcase_03 AC 120 ms
55,460 KB
testcase_04 AC 120 ms
56,004 KB
testcase_05 AC 120 ms
55,912 KB
testcase_06 AC 120 ms
55,704 KB
testcase_07 AC 120 ms
55,888 KB
testcase_08 AC 120 ms
55,720 KB
testcase_09 AC 121 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();
        int res = 0;
        res += b / a;
        if (b % a != 0) {
            res++;
        }
        System.out.println(res);
    }
}
0