結果

問題 No.477 MVP
ユーザー Mcpu3Mcpu3
提出日時 2018-09-01 23:54:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 216 bytes
コンパイル時間 2,325 ms
コンパイル使用メモリ 74,260 KB
実行使用メモリ 57,420 KB
最終ジャッジ日時 2023-10-21 20:04:21
合計ジャッジ時間 4,164 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
57,280 KB
testcase_01 AC 109 ms
56,188 KB
testcase_02 AC 119 ms
57,044 KB
testcase_03 AC 119 ms
57,208 KB
testcase_04 AC 122 ms
57,068 KB
testcase_05 AC 121 ms
57,420 KB
testcase_06 AC 102 ms
56,064 KB
testcase_07 AC 118 ms
57,260 KB
testcase_08 AC 116 ms
57,196 KB
testcase_09 AC 117 ms
57,048 KB
testcase_10 AC 114 ms
57,320 KB
testcase_11 AC 120 ms
57,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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