結果

問題 No.477 MVP
ユーザー tanzakutanzaku
提出日時 2017-01-27 22:23:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 547 bytes
コンパイル時間 4,016 ms
コンパイル使用メモリ 72,192 KB
実行使用メモリ 56,344 KB
最終ジャッジ日時 2023-08-25 03:52:06
合計ジャッジ時間 6,370 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,804 KB
testcase_01 AC 122 ms
55,624 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 120 ms
55,680 KB
testcase_05 WA -
testcase_06 AC 121 ms
56,068 KB
testcase_07 AC 122 ms
56,272 KB
testcase_08 AC 120 ms
56,344 KB
testcase_09 AC 120 ms
55,720 KB
testcase_10 AC 127 ms
55,348 KB
testcase_11 AC 122 ms
56,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class _477 {
	public static void main(String[] args) throws IOException {
		new _477().solve();
	}

	void solve() throws IOException {
		try (final Scanner in = new Scanner(System.in)) {
			long n = in.nextLong();
			long k = in.nextLong();
			System.out.println((n + k) / (k + 1));
		}
	}
	
	// for debug
	static void dump(Object... o) {
		System.err.println(Arrays.deepToString(o));
	}
}
0