結果

問題 No.477 MVP
ユーザー fjafjafjafjafjafja
提出日時 2017-09-01 23:05:08
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 1,000 ms
コード長 299 bytes
コンパイル時間 4,021 ms
コンパイル使用メモリ 74,592 KB
実行使用メモリ 41,212 KB
最終ジャッジ日時 2024-04-24 10:17:26
合計ジャッジ時間 5,553 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
39,948 KB
testcase_01 AC 116 ms
41,072 KB
testcase_02 AC 115 ms
41,152 KB
testcase_03 AC 102 ms
39,896 KB
testcase_04 AC 104 ms
40,244 KB
testcase_05 AC 110 ms
40,668 KB
testcase_06 AC 112 ms
41,096 KB
testcase_07 AC 107 ms
41,124 KB
testcase_08 AC 107 ms
40,996 KB
testcase_09 AC 110 ms
41,212 KB
testcase_10 AC 106 ms
40,284 KB
testcase_11 AC 103 ms
39,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N477
{
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		long N=sc.nextLong();
		long K=sc.nextLong();
		long ans=1;
		if(N<K){}
		else if(N>=K)
			{
				ans=N/(K+1)+1;
			}
		System.out.println(ans);
	}

}
0