結果

問題 No.46 はじめのn歩
ユーザー econo_coffeeecono_coffee
提出日時 2017-03-07 04:12:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 594 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 3,123 ms
コンパイル使用メモリ 71,764 KB
実行使用メモリ 56,492 KB
最終ジャッジ日時 2023-09-05 20:39:49
合計ジャッジ時間 5,598 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,576 KB
testcase_01 AC 123 ms
55,828 KB
testcase_02 AC 124 ms
56,416 KB
testcase_03 AC 122 ms
56,020 KB
testcase_04 AC 122 ms
56,128 KB
testcase_05 AC 125 ms
55,772 KB
testcase_06 AC 122 ms
55,796 KB
testcase_07 AC 122 ms
55,824 KB
testcase_08 AC 594 ms
56,096 KB
testcase_09 AC 122 ms
56,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yukicoder01 {

	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