結果

問題 No.477 MVP
ユーザー history_Basshistory_Bass
提出日時 2017-02-25 12:23:09
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 495 bytes
コンパイル時間 3,111 ms
コンパイル使用メモリ 71,176 KB
実行使用メモリ 56,296 KB
最終ジャッジ日時 2023-09-02 07:59:48
合計ジャッジ時間 4,569 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.Scanner;

class mvp {
	public static void main(String args[]){
		int 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[NandK.length];
		for(int i=0;i<NandK.length;i++)
			j[i]=Integer.parseInt(NandK[i]);
		//文字の代入
		N=j[0];
		K=j[1];
		
		//回答の計算
		answer=N/(K+1)+1;
		
		System.out.println(answer);
	}
}
0