結果

問題 No.388 階段 (1)
ユーザー clamdclamd
提出日時 2016-12-06 23:50:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 2,882 ms
コンパイル使用メモリ 72,144 KB
実行使用メモリ 56,176 KB
最終ジャッジ日時 2023-08-18 19:41:29
合計ジャッジ時間 5,517 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
55,892 KB
testcase_01 AC 114 ms
55,708 KB
testcase_02 AC 108 ms
55,848 KB
testcase_03 AC 109 ms
55,728 KB
testcase_04 AC 112 ms
56,176 KB
testcase_05 AC 109 ms
55,892 KB
testcase_06 AC 115 ms
55,976 KB
testcase_07 AC 112 ms
55,724 KB
testcase_08 AC 115 ms
55,436 KB
testcase_09 AC 112 ms
55,976 KB
testcase_10 AC 110 ms
55,968 KB
testcase_11 AC 109 ms
55,864 KB
testcase_12 AC 112 ms
55,440 KB
testcase_13 AC 111 ms
56,048 KB
testcase_14 AC 112 ms
55,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class practice {
	public static void main(String[] args) {
		Scanner sn = new Scanner(System.in);
		int stair = sn.nextInt();
		int num = sn.nextInt();
		int answer = (int) Math.floor(stair / num) + 1;
		System.out.println(answer);
	}
}
0