結果
問題 |
No.388 階段 (1)
|
ユーザー |
![]() |
提出日時 | 2017-05-02 22:53:07 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 51 ms / 2,000 ms |
コード長 | 453 bytes |
コンパイル時間 | 3,185 ms |
コンパイル使用メモリ | 73,112 KB |
実行使用メモリ | 36,992 KB |
最終ジャッジ日時 | 2024-09-14 04:48:24 |
合計ジャッジ時間 | 4,591 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
/*No.388 階段 (1)*/ import java.io.*; public class No388 { public static void main(String[] args) { int floor; String stair,Hairetsu[]=new String[2]; try(BufferedReader input = new BufferedReader(new InputStreamReader(System.in))){ stair=input.readLine(); Hairetsu=stair.split(" "); floor=Short.parseShort(Hairetsu[0])/Byte.parseByte(Hairetsu[1])+1; System.out.println(floor); }catch(Exception e){ e.printStackTrace(); } } }