結果

問題 No.477 MVP
ユーザー yagi2yagi2
提出日時 2017-04-14 11:04:56
言語 Java19
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 382 bytes
コンパイル時間 1,894 ms
コンパイル使用メモリ 71,608 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2023-09-25 19:15:49
合計ジャッジ時間 4,274 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,092 KB
testcase_01 AC 118 ms
55,464 KB
testcase_02 AC 120 ms
55,940 KB
testcase_03 AC 118 ms
55,552 KB
testcase_04 AC 118 ms
55,816 KB
testcase_05 AC 118 ms
56,136 KB
testcase_06 AC 117 ms
56,024 KB
testcase_07 AC 117 ms
55,876 KB
testcase_08 AC 119 ms
55,980 KB
testcase_09 AC 119 ms
56,096 KB
testcase_10 AC 121 ms
55,804 KB
testcase_11 AC 121 ms
55,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        BigInteger N = new BigInteger(sc.next());
        BigInteger K = new BigInteger(sc.next());

        N = N.divide(K.add(new BigInteger("1")));
        System.out.println(N.add(new BigInteger("1")));
    }
}
0