結果

問題 No.477 MVP
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-13 17:20:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 2,918 ms
コンパイル使用メモリ 71,552 KB
実行使用メモリ 56,116 KB
最終ジャッジ日時 2023-08-19 21:59:41
合計ジャッジ時間 5,711 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
55,664 KB
testcase_01 AC 138 ms
55,492 KB
testcase_02 AC 122 ms
56,116 KB
testcase_03 AC 122 ms
55,404 KB
testcase_04 AC 121 ms
55,896 KB
testcase_05 AC 121 ms
56,028 KB
testcase_06 AC 118 ms
53,636 KB
testcase_07 AC 120 ms
55,704 KB
testcase_08 AC 121 ms
56,004 KB
testcase_09 AC 124 ms
55,732 KB
testcase_10 AC 135 ms
55,804 KB
testcase_11 AC 136 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		long n = sc.nextLong();
		long k = sc.nextLong();
		System.out.println(n/(k+1)+1);
	}
}
0