結果

問題 No.388 階段 (1)
ユーザー ほげ太郎ほげ太郎
提出日時 2018-02-22 16:07:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 1,939 ms
コンパイル使用メモリ 74,332 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-04-09 20:05:47
合計ジャッジ時間 4,423 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
53,972 KB
testcase_01 AC 122 ms
54,192 KB
testcase_02 AC 119 ms
54,392 KB
testcase_03 AC 113 ms
54,124 KB
testcase_04 AC 119 ms
54,132 KB
testcase_05 AC 120 ms
54,116 KB
testcase_06 AC 103 ms
52,820 KB
testcase_07 AC 102 ms
53,016 KB
testcase_08 AC 111 ms
53,408 KB
testcase_09 AC 121 ms
54,100 KB
testcase_10 AC 105 ms
53,012 KB
testcase_11 AC 114 ms
53,020 KB
testcase_12 AC 122 ms
54,200 KB
testcase_13 AC 121 ms
54,200 KB
testcase_14 AC 113 ms
54,248 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.floor(((double) a / b)) + 1);
    }
}
0