結果

問題 No.388 階段 (1)
ユーザー yugi0922yugi0922
提出日時 2020-06-11 08:44:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 491 bytes
コンパイル時間 4,567 ms
コンパイル使用メモリ 72,284 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-06 08:03:17
合計ジャッジ時間 6,245 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,648 KB
testcase_01 AC 120 ms
55,708 KB
testcase_02 AC 121 ms
55,828 KB
testcase_03 AC 121 ms
55,596 KB
testcase_04 AC 121 ms
55,572 KB
testcase_05 AC 120 ms
55,556 KB
testcase_06 AC 121 ms
56,184 KB
testcase_07 AC 121 ms
56,172 KB
testcase_08 AC 119 ms
55,876 KB
testcase_09 AC 120 ms
55,660 KB
testcase_10 AC 120 ms
56,040 KB
testcase_11 AC 119 ms
55,808 KB
testcase_12 AC 122 ms
55,540 KB
testcase_13 AC 121 ms
55,624 KB
testcase_14 AC 121 ms
55,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import static java.lang.System.*;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Stair {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
		BufferedReader reader = new BufferedReader(new InputStreamReader(in));
		String[] inputs = reader.readLine().split(" ");
		int S = Integer.parseInt(inputs[0]);
		int F = Integer.parseInt(inputs[1]);
		System.out.println(S / F + 1);
	}
}
0