結果

問題 No.388 階段 (1)
ユーザー Ryugo AbeRyugo Abe
提出日時 2016-12-15 12:00:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 301 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 72,204 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-08-20 07:31:41
合計ジャッジ時間 4,956 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,084 KB
testcase_01 AC 121 ms
55,752 KB
testcase_02 AC 119 ms
55,696 KB
testcase_03 AC 120 ms
56,008 KB
testcase_04 AC 119 ms
55,720 KB
testcase_05 AC 120 ms
55,676 KB
testcase_06 AC 121 ms
55,788 KB
testcase_07 AC 119 ms
55,688 KB
testcase_08 AC 120 ms
55,456 KB
testcase_09 AC 123 ms
55,716 KB
testcase_10 AC 121 ms
55,740 KB
testcase_11 AC 122 ms
55,452 KB
testcase_12 AC 123 ms
55,856 KB
testcase_13 AC 121 ms
55,676 KB
testcase_14 AC 125 ms
56,012 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)
        int s = sc.nextInt();
        int f = sc.nextInt();

        System.out.println(s / f + 1);
    }
}
0