結果

問題 No.388 階段 (1)
ユーザー GB
提出日時 2018-04-08 14:54:42
言語 Java
(openjdk 23)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 2,255 ms
コンパイル使用メモリ 74,704 KB
実行使用メモリ 54,220 KB
最終ジャッジ日時 2024-06-26 20:21:35
合計ジャッジ時間 5,379 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

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