結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-08 14:54:42 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| + 526µs | |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 1,259 ms |
| コンパイル使用メモリ | 84,240 KB |
| 実行使用メモリ | 42,976 KB |
| 最終ジャッジ日時 | 2026-07-30 16:32:00 |
| 合計ジャッジ時間 | 3,490 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
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);
}
}
}