結果

問題 No.388 階段 (1)
ユーザー ko kiko ki
提出日時 2020-12-29 22:28:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 428 bytes
コンパイル時間 3,365 ms
コンパイル使用メモリ 75,392 KB
実行使用メモリ 41,620 KB
最終ジャッジ日時 2024-04-15 22:50:16
合計ジャッジ時間 6,243 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,256 KB
testcase_01 AC 120 ms
40,412 KB
testcase_02 AC 134 ms
41,572 KB
testcase_03 AC 133 ms
41,448 KB
testcase_04 AC 131 ms
41,472 KB
testcase_05 AC 118 ms
40,428 KB
testcase_06 AC 133 ms
41,420 KB
testcase_07 AC 136 ms
41,456 KB
testcase_08 AC 134 ms
41,376 KB
testcase_09 AC 133 ms
41,620 KB
testcase_10 AC 136 ms
41,200 KB
testcase_11 AC 132 ms
41,556 KB
testcase_12 AC 134 ms
41,580 KB
testcase_13 AC 133 ms
41,536 KB
testcase_14 AC 138 ms
41,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yukicoder_1 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);
    	
    	
        // int 1つ分を読み込む
        int s   = sc.nextInt();
    	int f   = sc.nextInt();
    	int ans = 0;
    	
    	ans = s / f + 1;
    	System.out.println(ans);
    }
}
0