結果

問題 No.46 はじめのn歩
ユーザー YatsukuYatsuku
提出日時 2015-12-09 17:26:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 643 ms / 5,000 ms
コード長 289 bytes
コンパイル時間 1,774 ms
コンパイル使用メモリ 70,840 KB
実行使用メモリ 56,564 KB
最終ジャッジ日時 2023-10-13 08:42:43
合計ジャッジ時間 4,186 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,856 KB
testcase_01 AC 107 ms
55,696 KB
testcase_02 AC 109 ms
55,892 KB
testcase_03 AC 109 ms
56,072 KB
testcase_04 AC 109 ms
56,108 KB
testcase_05 AC 113 ms
56,056 KB
testcase_06 AC 116 ms
55,928 KB
testcase_07 AC 120 ms
55,760 KB
testcase_08 AC 643 ms
56,564 KB
testcase_09 AC 117 ms
55,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class No_46 {
	public static void main(String args[]) {
		int step = 0;

		Scanner stdIn = new Scanner(System.in);

		int feet = stdIn.nextInt();
		int length = stdIn.nextInt();

		while( feet * step < length ) {
			step++;	
		}
		System.out.println(step);
	}
}
0