結果

問題 No.46 はじめのn歩
ユーザー Enter_0620Enter_0620
提出日時 2016-03-31 20:20:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 319 bytes
コンパイル時間 2,173 ms
コンパイル使用メモリ 73,704 KB
実行使用メモリ 54,384 KB
最終ジャッジ日時 2024-04-10 06:54:33
合計ジャッジ時間 4,282 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
53,984 KB
testcase_01 AC 126 ms
54,088 KB
testcase_02 AC 124 ms
53,896 KB
testcase_03 AC 130 ms
54,140 KB
testcase_04 AC 116 ms
53,080 KB
testcase_05 AC 133 ms
54,384 KB
testcase_06 AC 122 ms
54,104 KB
testcase_07 AC 125 ms
54,112 KB
testcase_08 AC 123 ms
54,268 KB
testcase_09 AC 123 ms
54,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Yuki46
{
	public static void main ( String[] args ) {
		double a = 0;
		double b = 0;

		Scanner sc = new Scanner ( System.in );

		a = sc.nextInt ();
		b = sc.nextInt ();

		double c = 0;
		c = b / a;

		c = Math.ceil ( c );
		
		int num = ( int )c;

		System.out.println( num );
	}
}
0