結果

問題 No.388 階段 (1)
ユーザー dazydazy
提出日時 2016-08-31 15:27:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 297 bytes
コンパイル時間 2,133 ms
コンパイル使用メモリ 73,932 KB
実行使用メモリ 41,524 KB
最終ジャッジ日時 2024-04-26 21:32:42
合計ジャッジ時間 4,919 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,336 KB
testcase_01 AC 122 ms
40,084 KB
testcase_02 AC 131 ms
41,312 KB
testcase_03 AC 136 ms
40,880 KB
testcase_04 AC 133 ms
41,396 KB
testcase_05 AC 132 ms
41,108 KB
testcase_06 AC 138 ms
40,968 KB
testcase_07 AC 136 ms
41,152 KB
testcase_08 AC 135 ms
41,524 KB
testcase_09 AC 133 ms
41,272 KB
testcase_10 AC 117 ms
39,996 KB
testcase_11 AC 133 ms
41,184 KB
testcase_12 AC 135 ms
41,020 KB
testcase_13 AC 133 ms
41,304 KB
testcase_14 AC 130 ms
41,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Procon {
    static public void main(String[] args) {
        int S, F;
        Scanner scanner = new Scanner(System.in);

        S = scanner.nextInt();
        F = scanner.nextInt();

        int ans = S / F + 1;

        System.out.printf("%d\n", ans);
    }
}
0