結果

問題 No.388 階段 (1)
ユーザー haru66nylonharu66nylon
提出日時 2019-02-23 16:51:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 5,611 ms
コンパイル使用メモリ 70,924 KB
実行使用メモリ 55,916 KB
最終ジャッジ日時 2023-08-20 11:47:16
合計ジャッジ時間 8,463 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
55,532 KB
testcase_01 AC 148 ms
55,436 KB
testcase_02 AC 146 ms
55,496 KB
testcase_03 AC 146 ms
55,752 KB
testcase_04 AC 147 ms
55,916 KB
testcase_05 AC 147 ms
55,744 KB
testcase_06 AC 146 ms
55,468 KB
testcase_07 AC 145 ms
55,876 KB
testcase_08 AC 151 ms
55,664 KB
testcase_09 AC 146 ms
55,756 KB
testcase_10 AC 151 ms
55,756 KB
testcase_11 AC 149 ms
55,760 KB
testcase_12 AC 145 ms
55,732 KB
testcase_13 AC 148 ms
55,732 KB
testcase_14 AC 145 ms
55,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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