結果

問題 No.388 階段 (1)
ユーザー GBGB
提出日時 2018-04-08 14:54:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 2,180 ms
コンパイル使用メモリ 71,648 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-09-09 03:09:27
合計ジャッジ時間 4,746 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,592 KB
testcase_01 AC 117 ms
55,760 KB
testcase_02 AC 117 ms
55,468 KB
testcase_03 AC 115 ms
56,012 KB
testcase_04 AC 114 ms
56,300 KB
testcase_05 AC 114 ms
56,160 KB
testcase_06 AC 114 ms
55,912 KB
testcase_07 AC 114 ms
56,248 KB
testcase_08 AC 115 ms
55,852 KB
testcase_09 AC 118 ms
55,764 KB
testcase_10 AC 113 ms
54,344 KB
testcase_11 AC 115 ms
55,628 KB
testcase_12 AC 113 ms
56,056 KB
testcase_13 AC 114 ms
56,320 KB
testcase_14 AC 113 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main{
  public static void main(String[] args)throws IOException {

    Scanner scan=new Scanner(System.in);
    int n=Integer.parseInt(scan.next());
    int f=Integer.parseInt(scan.next());
    int floor=1;
    
    if(n<f){
      System.out.println(floor);
    }else{
      floor+=n/f;
      System.out.println(floor);
    }
  }
}
0