結果

問題 No.477 MVP
ユーザー samplelpmas
提出日時 2017-01-28 16:57:12
言語 Java
(openjdk 23)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 260 bytes
コンパイル時間 2,373 ms
コンパイル使用メモリ 77,080 KB
実行使用メモリ 41,312 KB
最終ジャッジ日時 2024-12-23 21:07:47
合計ジャッジ時間 4,571 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        long N = sc.nextLong();
        long K = sc.nextLong();

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

    }

}
0