結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
Gchansanjou
|
| 提出日時 | 2018-02-10 01:22:59 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 30 ms / 2,000 ms |
| + 525µs | |
| コード長 | 699 bytes |
| 記録 | |
| コンパイル時間 | 2,207 ms |
| コンパイル使用メモリ | 85,116 KB |
| 実行使用メモリ | 40,024 KB |
| 最終ジャッジ日時 | 2026-09-12 12:07:12 |
| 合計ジャッジ時間 | 3,860 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
}
}
Gchansanjou