結果

問題 No.477 MVP
ユーザー yuiyui
提出日時 2017-02-20 10:53:21
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 309 bytes
コンパイル時間 1,764 ms
コンパイル使用メモリ 70,964 KB
実行使用メモリ 58,480 KB
最終ジャッジ日時 2023-08-28 19:36:20
合計ジャッジ時間 3,880 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	int hit = sc.nextInt();
    	int mem = sc.nextInt();
    	int ans = 0;
    	int hit2 = hit-hit%(mem+1);

    	ans=hit2/(mem+1);
    	System.out.println(ans+1);
    }

}
0