結果

問題 No.388 階段 (1)
ユーザー 37zigen37zigen
提出日時 2016-07-07 19:00:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 2,578 ms
コンパイル使用メモリ 71,864 KB
実行使用メモリ 56,336 KB
最終ジャッジ日時 2023-08-03 01:13:09
合計ジャッジ時間 5,290 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,020 KB
testcase_01 AC 120 ms
55,756 KB
testcase_02 AC 121 ms
56,336 KB
testcase_03 AC 118 ms
55,812 KB
testcase_04 AC 121 ms
55,764 KB
testcase_05 AC 120 ms
56,132 KB
testcase_06 AC 121 ms
55,700 KB
testcase_07 AC 124 ms
55,740 KB
testcase_08 AC 121 ms
56,020 KB
testcase_09 AC 121 ms
55,860 KB
testcase_10 AC 119 ms
56,236 KB
testcase_11 AC 120 ms
56,260 KB
testcase_12 AC 118 ms
55,868 KB
testcase_13 AC 121 ms
55,980 KB
testcase_14 AC 122 ms
55,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		solver();
	}

	static void solver() {
		Scanner sc = new Scanner(System.in);
		int s = sc.nextInt();
		if (s < 0 || s > 456)
			throw new AssertionError();
		int f = sc.nextInt();
		if (f <= 0 || f > 124)
			throw new AssertionError();
		System.out.println((s / f + 1));
	}
}
0