結果

問題 No.46 はじめのn歩
ユーザー reo3313reo3313
提出日時 2015-09-21 23:26:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 3,429 ms
コンパイル使用メモリ 71,500 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-26 14:16:40
合計ジャッジ時間 5,578 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
53,984 KB
testcase_02 WA -
testcase_03 AC 128 ms
56,036 KB
testcase_04 AC 130 ms
55,380 KB
testcase_05 AC 128 ms
55,580 KB
testcase_06 WA -
testcase_07 AC 128 ms
55,628 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package test1;
import java.util.Scanner;

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

        int a = sc.nextInt();
        int b = sc.nextInt();
        int i;
        
        i = b/a + 1;
        System.out.print(i);
    }
}
0