結果

問題 No.477 MVP
ユーザー history_Basshistory_Bass
提出日時 2017-02-25 13:33:41
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 486 bytes
コンパイル時間 2,287 ms
コンパイル使用メモリ 71,948 KB
実行使用メモリ 56,016 KB
最終ジャッジ日時 2023-09-02 08:01:00
合計ジャッジ時間 4,383 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,456 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 122 ms
55,688 KB
testcase_07 AC 134 ms
55,524 KB
testcase_08 AC 129 ms
55,728 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class mvp {
	public static void main(String args[]){
		long N=100,K=2,answer=0;
		
		//文字の読み込み
		Scanner sc=new Scanner(System.in);
		String line=sc.nextLine();
		String[] NandK=line.split(" ",0);
		//文字を分割して型変換
		int[] j=new int[2];
		j[0]=Integer.parseInt(NandK[0]);
		j[1]=Integer.parseInt(NandK[1]);
		//文字の代入
		N=j[0];
		K=j[1];
		
		//回答の計算
		answer=N/(K+1)+1;
		
		System.out.println(answer);
	}
}
0