結果

問題 No.46 はじめのn歩
ユーザー tk55513tk55513
提出日時 2020-09-05 21:50:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 108 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 1,947 ms
コンパイル使用メモリ 71,048 KB
実行使用メモリ 56,260 KB
最終ジャッジ日時 2023-08-19 13:06:25
合計ジャッジ時間 4,160 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
56,260 KB
testcase_01 AC 107 ms
55,888 KB
testcase_02 AC 106 ms
56,052 KB
testcase_03 AC 107 ms
55,920 KB
testcase_04 AC 108 ms
56,220 KB
testcase_05 AC 105 ms
56,068 KB
testcase_06 AC 104 ms
55,884 KB
testcase_07 AC 107 ms
55,760 KB
testcase_08 AC 106 ms
56,128 KB
testcase_09 AC 104 ms
56,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args ) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if (b % a == 0) {
            System.out.println(b / a);
        }else{
            System.out.println(b / a + 1);
        }
    }
}
0