結果

問題 No.477 MVP
ユーザー Hiroaki KonoHiroaki Kono
提出日時 2017-10-27 00:00:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 261 bytes
コンパイル時間 2,968 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 54,168 KB
最終ジャッジ日時 2024-05-01 15:22:08
合計ジャッジ時間 5,152 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
52,556 KB
testcase_01 AC 120 ms
53,796 KB
testcase_02 AC 124 ms
54,168 KB
testcase_03 AC 120 ms
54,148 KB
testcase_04 AC 121 ms
53,864 KB
testcase_05 AC 116 ms
53,996 KB
testcase_06 AC 105 ms
52,904 KB
testcase_07 AC 117 ms
53,892 KB
testcase_08 AC 107 ms
52,708 KB
testcase_09 AC 129 ms
54,056 KB
testcase_10 AC 103 ms
52,924 KB
testcase_11 AC 117 ms
53,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No477 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        long hp = s.nextLong();
        long help = s.nextLong();
        System.out.println(hp / (help + 1) + 1);
    }
}
0