結果

問題 No.388 階段 (1)
コンテスト
ユーザー Gchansanjou
提出日時 2018-02-10 01:18:41
言語 Java
(openjdk 26.0.2.1 + ACL)
コンパイル:
javac -J-Duser.language=en -encoding UTF8 -cp /opt/aclib/ac_library.jar _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true -cp .:/opt/aclib/ac_library.jar _class_
結果
WA  
実行時間 -
コード長 753 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,537 ms
コンパイル使用メモリ 84,776 KB
実行使用メモリ 40,128 KB
最終ジャッジ日時 2026-09-12 12:07:07
合計ジャッジ時間 4,251 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 10 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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