結果

問題 No.388 階段 (1)
ユーザー KahoMatsumotoKahoMatsumoto
提出日時 2017-05-26 22:51:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 3,070 ms
コンパイル使用メモリ 74,036 KB
実行使用メモリ 57,704 KB
最終ジャッジ日時 2023-10-20 00:19:40
合計ジャッジ時間 5,968 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
57,676 KB
testcase_01 AC 126 ms
57,404 KB
testcase_02 AC 126 ms
57,456 KB
testcase_03 AC 127 ms
57,648 KB
testcase_04 AC 122 ms
57,576 KB
testcase_05 AC 123 ms
57,680 KB
testcase_06 AC 122 ms
57,608 KB
testcase_07 AC 123 ms
57,572 KB
testcase_08 AC 124 ms
57,680 KB
testcase_09 AC 118 ms
57,284 KB
testcase_10 AC 122 ms
57,704 KB
testcase_11 AC 126 ms
57,480 KB
testcase_12 AC 124 ms
57,476 KB
testcase_13 AC 122 ms
57,244 KB
testcase_14 AC 119 ms
57,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No388 {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int s, f, ans;
    s = sc.nextInt();
    f = sc.nextInt();
    ans = s / f + 1;
    System.out.println(ans);
  }
}
0