結果

問題 No.388 階段 (1)
ユーザー Shunsuke KamadaShunsuke Kamada
提出日時 2018-09-25 21:57:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 4,016 ms
コンパイル使用メモリ 74,816 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2024-04-15 21:49:59
合計ジャッジ時間 5,426 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
53,976 KB
testcase_01 AC 123 ms
56,236 KB
testcase_02 AC 118 ms
53,944 KB
testcase_03 AC 112 ms
53,188 KB
testcase_04 AC 108 ms
52,668 KB
testcase_05 AC 108 ms
53,184 KB
testcase_06 AC 122 ms
54,292 KB
testcase_07 AC 123 ms
54,176 KB
testcase_08 AC 119 ms
54,152 KB
testcase_09 AC 105 ms
54,268 KB
testcase_10 AC 122 ms
54,124 KB
testcase_11 AC 122 ms
54,120 KB
testcase_12 AC 123 ms
54,056 KB
testcase_13 AC 121 ms
54,168 KB
testcase_14 AC 119 ms
54,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintWriter;
import java.util.*;

public class No0388 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        int s = scanner.nextInt();
        int f = scanner.nextInt();
        int ans = s/f+1;
        out.println(ans);
        out.flush();
    }
}
0