結果

問題 No.388 階段 (1)
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-13 07:23:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 2,362 ms
コンパイル使用メモリ 71,112 KB
実行使用メモリ 56,376 KB
最終ジャッジ日時 2023-08-17 04:12:18
合計ジャッジ時間 5,329 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,172 KB
testcase_01 AC 126 ms
55,484 KB
testcase_02 AC 127 ms
55,540 KB
testcase_03 AC 127 ms
55,568 KB
testcase_04 AC 124 ms
55,772 KB
testcase_05 AC 124 ms
55,812 KB
testcase_06 AC 125 ms
53,984 KB
testcase_07 AC 124 ms
55,872 KB
testcase_08 AC 125 ms
56,012 KB
testcase_09 AC 128 ms
55,796 KB
testcase_10 AC 126 ms
55,684 KB
testcase_11 AC 127 ms
55,800 KB
testcase_12 AC 129 ms
56,376 KB
testcase_13 AC 126 ms
56,136 KB
testcase_14 AC 123 ms
55,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int S = sc.nextInt();
        int F = sc.nextInt();
        int r = (int)Math.ceil( (double)(S+1)/F );
        System.out.println(r);
    }
}
0