結果
問題 | No.477 MVP |
ユーザー | history_Bass |
提出日時 | 2017-02-25 13:34:17 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 485 bytes |
コンパイル時間 | 3,180 ms |
コンパイル使用メモリ | 71,560 KB |
実行使用メモリ | 58,028 KB |
最終ジャッジ日時 | 2023-09-02 08:02:07 |
合計ジャッジ時間 | 4,880 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 123 ms
55,564 KB |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | AC | 123 ms
55,684 KB |
testcase_07 | AC | 120 ms
55,724 KB |
testcase_08 | AC | 118 ms
55,736 KB |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
ソースコード
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[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); } }