結果

問題 No.477 MVP
ユーザー GrenacheGrenache
提出日時 2017-01-27 22:26:43
言語 Java19
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 561 bytes
コンパイル時間 3,429 ms
コンパイル使用メモリ 72,472 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-08-25 03:55:52
合計ジャッジ時間 5,908 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,452 KB
testcase_01 AC 122 ms
55,572 KB
testcase_02 AC 124 ms
55,440 KB
testcase_03 AC 124 ms
55,600 KB
testcase_04 AC 124 ms
56,136 KB
testcase_05 AC 125 ms
55,888 KB
testcase_06 AC 123 ms
55,380 KB
testcase_07 AC 117 ms
55,852 KB
testcase_08 AC 120 ms
56,092 KB
testcase_09 AC 122 ms
55,936 KB
testcase_10 AC 123 ms
55,828 KB
testcase_11 AC 122 ms
56,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder477 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		long n = sc.nextLong();
		long k = sc.nextLong();

		pr.println(n / (k + 1) + 1);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0