結果

問題 No.477 MVP
ユーザー yuiyui
提出日時 2017-02-20 10:49:20
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 275 bytes
コンパイル時間 2,087 ms
コンパイル使用メモリ 71,436 KB
実行使用メモリ 58,500 KB
最終ジャッジ日時 2023-08-28 19:36:12
合計ジャッジ時間 4,400 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,592 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 126 ms
55,884 KB
testcase_07 AC 125 ms
55,900 KB
testcase_08 AC 125 ms
55,720 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;

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

}
0