結果

問題 No.46 はじめのn歩
ユーザー 岡部知弥岡部知弥
提出日時 2020-12-16 10:58:54
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 454 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 74,528 KB
実行使用メモリ 41,120 KB
最終ジャッジ日時 2023-10-20 09:14:45
合計ジャッジ時間 4,026 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 118 ms
40,424 KB
testcase_02 WA -
testcase_03 AC 118 ms
41,120 KB
testcase_04 AC 119 ms
40,928 KB
testcase_05 AC 117 ms
40,832 KB
testcase_06 WA -
testcase_07 AC 109 ms
39,844 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

        // int 1つ分を読み込む
        int a = sc.nextInt();

        // int 1つ分を読み込む
        int b = sc.nextInt();

        // 標準出力に書き出す。
        System.out.println((b/a)+1);
    }
}
0