結果

問題 No.388 階段 (1)
ユーザー veroomveroom
提出日時 2016-10-08 19:03:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 4,577 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 56,064 KB
最終ジャッジ日時 2023-08-14 02:35:28
合計ジャッジ時間 6,050 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,776 KB
testcase_01 AC 122 ms
55,528 KB
testcase_02 AC 122 ms
55,904 KB
testcase_03 AC 119 ms
55,876 KB
testcase_04 AC 123 ms
55,504 KB
testcase_05 AC 123 ms
56,064 KB
testcase_06 AC 123 ms
55,856 KB
testcase_07 AC 121 ms
55,608 KB
testcase_08 AC 123 ms
55,752 KB
testcase_09 AC 124 ms
55,596 KB
testcase_10 AC 122 ms
56,036 KB
testcase_11 AC 125 ms
55,276 KB
testcase_12 AC 123 ms
56,040 KB
testcase_13 AC 123 ms
55,684 KB
testcase_14 AC 123 ms
55,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yukicoder {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int stages = sc.nextInt();
		int home = sc.nextInt();
		int i = 1;

		while (0 <= (stages - home)) {
			stages -= home;
			i++;
		}

		System.out.println(i);

	}
}
0