結果

問題 No.46 はじめのn歩
ユーザー ほげ太郎ほげ太郎
提出日時 2018-02-22 16:04:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 1,924 ms
コンパイル使用メモリ 74,888 KB
実行使用メモリ 54,008 KB
最終ジャッジ日時 2024-04-09 19:57:55
合計ジャッジ時間 3,446 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
52,908 KB
testcase_01 AC 107 ms
53,876 KB
testcase_02 AC 111 ms
53,960 KB
testcase_03 AC 95 ms
52,656 KB
testcase_04 AC 109 ms
54,008 KB
testcase_05 AC 100 ms
53,044 KB
testcase_06 AC 102 ms
52,688 KB
testcase_07 AC 99 ms
52,988 KB
testcase_08 AC 104 ms
53,012 KB
testcase_09 AC 108 ms
53,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

        System.out.println((long) Math.ceil(((double) b / a)));
    }
}
0