結果
問題 |
No.388 階段 (1)
|
ユーザー |
|
提出日時 | 2020-12-28 23:02:06 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 696 bytes |
コンパイル時間 | 2,144 ms |
コンパイル使用メモリ | 75,600 KB |
実行使用メモリ | 41,292 KB |
最終ジャッジ日時 | 2024-10-04 02:35:51 |
合計ジャッジ時間 | 4,759 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 12 |
ソースコード
import java.util.Scanner; import java.util.Arrays; import java.util.List; // https://yukicoder.me/problems/no/289 public class Main { public static void main(String[] args) { // 標準入力から読み込む際に、Scannerオブジェクトを使う。 Scanner sc = new Scanner(System.in); // String 1つ分を読み込む String s = 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 = stairNumber / floorNumber; // 標準出力に書き出す。 System.out.println(result + 1); } }