結果

問題 No.388 階段 (1)
ユーザー Yosuke YamaguchiYosuke Yamaguchi
提出日時 2020-12-28 23:11:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 756 bytes
コンパイル時間 3,694 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 54,348 KB
最終ジャッジ日時 2024-04-14 22:36:41
合計ジャッジ時間 6,241 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
53,884 KB
testcase_01 AC 127 ms
54,024 KB
testcase_02 AC 126 ms
54,004 KB
testcase_03 AC 127 ms
54,308 KB
testcase_04 AC 126 ms
54,080 KB
testcase_05 AC 126 ms
54,176 KB
testcase_06 AC 129 ms
53,952 KB
testcase_07 AC 128 ms
53,908 KB
testcase_08 AC 128 ms
54,328 KB
testcase_09 AC 129 ms
54,092 KB
testcase_10 AC 129 ms
54,208 KB
testcase_11 AC 127 ms
54,348 KB
testcase_12 AC 125 ms
53,884 KB
testcase_13 AC 129 ms
54,144 KB
testcase_14 AC 126 ms
54,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
// import java.util.Arrays;
// import java.util.List;

// https://yukicoder.me/problems/no/289
public class Stairs388 {
  public static void main(String[] args) {
    // 標準入力から読み込む際に、Scannerオブジェクトを使う。
    Scanner sc = new Scanner(System.in);

    // String 1つ分を読み込む
    int s1 = Integer.parseInt(sc.next());
    int s2 = Integer.parseInt(sc.next());

    // String s = "39 10";

    // List<String> inputList = Arrays.asList(s.split(" "));
    // int stairNumber = Integer.parseInt(inputList.get(0));
    // int floorNumber = Integer.parseInt(inputList.get(1));

    int result = s1 / s2;
    // 標準出力に書き出す。
    System.out.println(result + 1);
  }
}
0