結果

問題 No.477 MVP
ユーザー yagi2yagi2
提出日時 2017-04-14 11:04:56
言語 Java
(openjdk 23)
結果
AC  
実行時間 109 ms / 1,000 ms
コード長 382 bytes
コンパイル時間 1,983 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 47,440 KB
最終ジャッジ日時 2024-07-18 15:14:45
合計ジャッジ時間 3,685 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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