結果

問題 No.46 はじめのn歩
ユーザー bigbear90560bigbear90560
提出日時 2015-07-02 21:04:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 3,433 ms
コンパイル使用メモリ 71,984 KB
実行使用メモリ 56,056 KB
最終ジャッジ日時 2023-09-22 05:41:47
合計ジャッジ時間 5,404 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,056 KB
testcase_01 AC 121 ms
55,768 KB
testcase_02 AC 121 ms
55,504 KB
testcase_03 AC 121 ms
55,876 KB
testcase_04 AC 121 ms
55,768 KB
testcase_05 AC 119 ms
55,752 KB
testcase_06 AC 121 ms
55,868 KB
testcase_07 AC 119 ms
55,536 KB
testcase_08 AC 121 ms
55,904 KB
testcase_09 AC 121 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
/**
 * No.46 はじめのn歩
 */
public class FirstStepCalc {

	public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
        double a = sc.nextInt();
        double b = sc.nextInt();

        System.out.println((int)Math.ceil(b/a));
	}

}
0