結果
| 問題 | No.388 階段 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-08 14:54:42 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 1,748 ms |
| コンパイル使用メモリ | 82,516 KB |
| 実行使用メモリ | 41,620 KB |
| 最終ジャッジ日時 | 2026-03-13 14:24:40 |
| 合計ジャッジ時間 | 3,440 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_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);
}
}
}