結果

問題 No.46 はじめのn歩
ユーザー n_gojon_gojo
提出日時 2020-04-09 10:23:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 4,613 ms
コンパイル使用メモリ 72,568 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-29 00:34:57
合計ジャッジ時間 5,496 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 126 ms
55,504 KB
testcase_02 AC 125 ms
55,740 KB
testcase_03 WA -
testcase_04 AC 128 ms
55,764 KB
testcase_05 WA -
testcase_06 AC 127 ms
55,772 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 126 ms
55,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        int a = sc.nextInt();
        int b = sc.nextInt();
        b++;
        System.out.println(b/a);
    }
}
0