結果

問題 No.46 はじめのn歩
ユーザー satisfy5190satisfy5190
提出日時 2017-02-07 19:33:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 596 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 3,074 ms
コンパイル使用メモリ 71,848 KB
実行使用メモリ 56,120 KB
最終ジャッジ日時 2023-08-26 05:18:15
合計ジャッジ時間 5,638 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,012 KB
testcase_01 AC 123 ms
56,072 KB
testcase_02 AC 125 ms
55,760 KB
testcase_03 AC 124 ms
55,960 KB
testcase_04 AC 123 ms
55,796 KB
testcase_05 AC 124 ms
55,920 KB
testcase_06 AC 123 ms
55,824 KB
testcase_07 AC 123 ms
56,120 KB
testcase_08 AC 596 ms
55,840 KB
testcase_09 AC 125 ms
55,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yuki {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = b;
		int d = 0;
		while(c > 0){
			c  = c-a;
			d++;
		}
		System.out.println(d);
	}

}
0