結果

問題 No.388 階段 (1)
ユーザー GchansanjouGchansanjou
提出日時 2018-02-10 01:22:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 699 bytes
コンパイル時間 4,680 ms
コンパイル使用メモリ 73,504 KB
実行使用メモリ 37,132 KB
最終ジャッジ日時 2024-04-17 15:14:52
合計ジャッジ時間 3,849 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
37,132 KB
testcase_01 AC 43 ms
36,580 KB
testcase_02 AC 43 ms
37,048 KB
testcase_03 AC 42 ms
36,808 KB
testcase_04 AC 45 ms
36,896 KB
testcase_05 AC 44 ms
36,864 KB
testcase_06 AC 43 ms
37,024 KB
testcase_07 AC 43 ms
36,820 KB
testcase_08 AC 44 ms
36,688 KB
testcase_09 AC 45 ms
36,824 KB
testcase_10 AC 44 ms
36,852 KB
testcase_11 AC 43 ms
37,116 KB
testcase_12 AC 43 ms
36,560 KB
testcase_13 AC 43 ms
37,100 KB
testcase_14 AC 43 ms
36,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukiCoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00388 {

	public static void main(String[] args) {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

		try {
			String[] input = new String[2];
			input = bufferedReader.readLine().split(" ");
			int stepCount = Integer.parseInt(input[0]);
			Integer houseHight = Integer.parseInt(input[1]);

			if (stepCount == 0) {
				System.out.println("1");
				return;
			} else {
				int count = 1;
				count += (int) (stepCount/houseHight);
				System.out.println(count);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
0