結果
| 問題 | No.388 階段 (1) | 
| コンテスト | |
| ユーザー |  Gchansanjou | 
| 提出日時 | 2018-02-10 01:22:59 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 54 ms / 2,000 ms | 
| コード長 | 699 bytes | 
| コンパイル時間 | 3,527 ms | 
| コンパイル使用メモリ | 74,236 KB | 
| 実行使用メモリ | 37,348 KB | 
| 最終ジャッジ日時 | 2024-10-09 09:15:20 | 
| 合計ジャッジ時間 | 5,042 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
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();
		}
	}
}
            
            
            
        