結果

問題 No.46 はじめのn歩
ユーザー tentententen
提出日時 2020-11-10 10:32:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 2,452 ms
コンパイル使用メモリ 71,496 KB
実行使用メモリ 56,264 KB
最終ジャッジ日時 2023-09-29 23:25:06
合計ジャッジ時間 4,199 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,828 KB
testcase_01 AC 105 ms
55,908 KB
testcase_02 AC 104 ms
56,000 KB
testcase_03 AC 104 ms
56,060 KB
testcase_04 AC 104 ms
55,808 KB
testcase_05 AC 106 ms
56,264 KB
testcase_06 AC 104 ms
55,872 KB
testcase_07 AC 104 ms
56,136 KB
testcase_08 AC 115 ms
56,028 KB
testcase_09 AC 116 ms
55,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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 - 1) / a);
    }
}
0