結果

問題 No.46 はじめのn歩
ユーザー qorrnsmjqorrnsmj
提出日時 2022-07-14 14:57:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 599 ms / 5,000 ms
コード長 384 bytes
コンパイル時間 2,142 ms
コンパイル使用メモリ 70,956 KB
実行使用メモリ 56,016 KB
最終ジャッジ日時 2023-09-08 05:10:00
合計ジャッジ時間 4,786 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,740 KB
testcase_01 AC 122 ms
53,432 KB
testcase_02 AC 123 ms
55,756 KB
testcase_03 AC 122 ms
55,872 KB
testcase_04 AC 125 ms
55,472 KB
testcase_05 AC 126 ms
55,676 KB
testcase_06 AC 123 ms
55,776 KB
testcase_07 AC 123 ms
55,460 KB
testcase_08 AC 599 ms
56,016 KB
testcase_09 AC 122 ms
53,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int count = 0;
        while (b > 0) {
            b -= a;
            count++;
        }
        System.out.println(count);
    }
}
0