結果

問題 No.46 はじめのn歩
ユーザー mura40424mura40424
提出日時 2014-11-23 14:30:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 686 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 1,910 ms
コンパイル使用メモリ 71,596 KB
実行使用メモリ 56,264 KB
最終ジャッジ日時 2023-08-30 22:15:03
合計ジャッジ時間 4,359 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,548 KB
testcase_01 AC 120 ms
55,884 KB
testcase_02 AC 119 ms
56,224 KB
testcase_03 AC 121 ms
56,264 KB
testcase_04 AC 121 ms
55,824 KB
testcase_05 AC 120 ms
55,500 KB
testcase_06 AC 120 ms
55,680 KB
testcase_07 AC 119 ms
55,844 KB
testcase_08 AC 686 ms
55,652 KB
testcase_09 AC 119 ms
55,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner S = new Scanner(System.in);
		int a = S.nextInt();
		int b = S.nextInt();
		int count=1;
		
		while(count*a < b)
			count++;
		System.out.println(count);
	}
}
0