結果

問題 No.388 階段 (1)
ユーザー Gchansanjou
提出日時 2018-02-10 01:18:41
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 753 bytes
コンパイル時間 3,336 ms
コンパイル使用メモリ 73,920 KB
実行使用メモリ 37,444 KB
最終ジャッジ日時 2024-10-09 09:15:14
合計ジャッジ時間 4,921 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 10 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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 = 0;
				count = (int) (stepCount/houseHight);
				if(stepCount%houseHight != 0) {
					count++;
				}
				System.out.println(count);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
0