結果

問題 No.388 階段 (1)
ユーザー kameyama_skameyama_s
提出日時 2023-04-11 12:38:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 2,350 ms
コンパイル使用メモリ 73,944 KB
実行使用メモリ 41,680 KB
最終ジャッジ日時 2024-04-16 11:21:39
合計ジャッジ時間 5,465 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,332 KB
testcase_01 AC 127 ms
41,328 KB
testcase_02 AC 131 ms
41,632 KB
testcase_03 AC 128 ms
41,136 KB
testcase_04 AC 128 ms
41,228 KB
testcase_05 AC 129 ms
41,248 KB
testcase_06 AC 129 ms
41,156 KB
testcase_07 AC 129 ms
41,196 KB
testcase_08 AC 116 ms
39,856 KB
testcase_09 AC 117 ms
40,320 KB
testcase_10 AC 131 ms
41,020 KB
testcase_11 AC 132 ms
41,380 KB
testcase_12 AC 127 ms
41,172 KB
testcase_13 AC 130 ms
41,680 KB
testcase_14 AC 134 ms
41,388 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();
        
        if(a%b==0){
            System.out.println(a/b+1);
        }
        else{
            System.out.println(a/b+1);
        }
    }
}
0