結果

問題 No.477 MVP
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-04 11:38:24
言語 Java19
(openjdk 21)
結果
AC  
実行時間 42 ms / 1,000 ms
コード長 487 bytes
コンパイル時間 2,045 ms
コンパイル使用メモリ 71,260 KB
実行使用メモリ 49,880 KB
最終ジャッジ日時 2023-10-12 07:48:23
合計ジャッジ時間 3,380 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,436 KB
testcase_01 AC 42 ms
49,864 KB
testcase_02 AC 42 ms
49,168 KB
testcase_03 AC 42 ms
49,192 KB
testcase_04 AC 42 ms
49,504 KB
testcase_05 AC 41 ms
49,164 KB
testcase_06 AC 42 ms
49,880 KB
testcase_07 AC 42 ms
49,444 KB
testcase_08 AC 42 ms
49,344 KB
testcase_09 AC 40 ms
49,396 KB
testcase_10 AC 42 ms
49,484 KB
testcase_11 AC 42 ms
49,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import static java.lang.System.in;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        long N = Long.parseLong(inputs[0]);
        long K = Long.parseLong(inputs[1]);


        System.out.println(N/(K+1) + 1);
    }
}
0