結果
| 問題 | 
                            No.388 階段 (1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-12-06 23:50:04 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 126 ms / 2,000 ms | 
| コード長 | 272 bytes | 
| コンパイル時間 | 3,255 ms | 
| コンパイル使用メモリ | 74,004 KB | 
| 実行使用メモリ | 41,376 KB | 
| 最終ジャッジ日時 | 2024-11-28 03:18:07 | 
| 合計ジャッジ時間 | 5,852 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
import java.util.Scanner;
public class practice {
	public static void main(String[] args) {
		Scanner sn = new Scanner(System.in);
		int stair = sn.nextInt();
		int num = sn.nextInt();
		int answer = (int) Math.floor(stair / num) + 1;
		System.out.println(answer);
	}
}