結果

問題 No.388 階段 (1)
ユーザー kazapyon27kazapyon27
提出日時 2017-05-02 22:53:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 453 bytes
コンパイル時間 4,156 ms
コンパイル使用メモリ 71,856 KB
実行使用メモリ 49,468 KB
最終ジャッジ日時 2023-10-12 05:19:01
合計ジャッジ時間 4,279 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,368 KB
testcase_01 AC 41 ms
49,252 KB
testcase_02 AC 41 ms
49,380 KB
testcase_03 AC 40 ms
49,328 KB
testcase_04 AC 39 ms
49,400 KB
testcase_05 AC 41 ms
49,160 KB
testcase_06 AC 41 ms
49,244 KB
testcase_07 AC 40 ms
49,468 KB
testcase_08 AC 40 ms
49,408 KB
testcase_09 AC 40 ms
49,312 KB
testcase_10 AC 40 ms
49,168 KB
testcase_11 AC 41 ms
49,168 KB
testcase_12 AC 41 ms
49,404 KB
testcase_13 AC 40 ms
49,328 KB
testcase_14 AC 41 ms
49,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*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();
		}
	}
}
0