結果

問題 No.46 はじめのn歩
ユーザー Ryugo AbeRyugo Abe
提出日時 2016-12-15 10:56:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 145 ms / 5,000 ms
コード長 349 bytes
コンパイル時間 3,078 ms
コンパイル使用メモリ 70,924 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-08-20 07:29:16
合計ジャッジ時間 4,772 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
55,560 KB
testcase_01 AC 141 ms
55,904 KB
testcase_02 AC 140 ms
55,700 KB
testcase_03 AC 142 ms
55,912 KB
testcase_04 AC 142 ms
56,084 KB
testcase_05 AC 145 ms
55,968 KB
testcase_06 AC 143 ms
55,816 KB
testcase_07 AC 142 ms
55,964 KB
testcase_08 AC 142 ms
55,760 KB
testcase_09 AC 144 ms
55,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        // a b ともに正の整数。(1≤a,b≤109)
        double a = sc.nextDouble();
        double b = sc.nextDouble();

        int ans = (int) Math.ceil(b / a);

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