結果

問題 No.477 MVP
ユーザー tsunabittsunabit
提出日時 2019-06-09 18:16:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 344 bytes
コンパイル時間 2,990 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 41,332 KB
最終ジャッジ日時 2024-04-15 20:09:45
合計ジャッジ時間 5,115 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
41,204 KB
testcase_01 AC 121 ms
41,332 KB
testcase_02 AC 108 ms
40,056 KB
testcase_03 AC 118 ms
41,156 KB
testcase_04 AC 112 ms
40,240 KB
testcase_05 AC 119 ms
41,112 KB
testcase_06 AC 118 ms
41,044 KB
testcase_07 AC 110 ms
39,972 KB
testcase_08 AC 124 ms
41,332 KB
testcase_09 AC 124 ms
41,324 KB
testcase_10 AC 127 ms
41,156 KB
testcase_11 AC 125 ms
41,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class No477 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), k = sc.nextLong();
        System.out.println(n / (k + 1) + 1);
    }
}
0