結果

問題 No.46 はじめのn歩
ユーザー tk55513tk55513
提出日時 2020-09-05 21:50:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 74,824 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-05-06 20:11:20
合計ジャッジ時間 3,686 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
54,092 KB
testcase_01 AC 121 ms
54,024 KB
testcase_02 AC 118 ms
53,936 KB
testcase_03 AC 122 ms
54,204 KB
testcase_04 AC 117 ms
54,268 KB
testcase_05 AC 113 ms
52,768 KB
testcase_06 AC 112 ms
53,204 KB
testcase_07 AC 106 ms
52,988 KB
testcase_08 AC 115 ms
54,020 KB
testcase_09 AC 107 ms
52,888 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