結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
54,296 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 117 ms
54,104 KB
testcase_05 AC 119 ms
54,056 KB
testcase_06 AC 118 ms
54,084 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 120 ms
54,096 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

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) a / b)) + 1);
    }
}
0