結果

問題 No.388 階段 (1)
ユーザー eagle
提出日時 2022-05-26 14:19:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 110 ms / 2,000 ms
コード長 421 bytes
コンパイル時間 1,941 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 41,464 KB
最終ジャッジ日時 2024-09-20 14:59:26
合計ジャッジ時間 4,052 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		//ステア君が現在いる段数
		int S = sc.nextInt();
		//ステア君の家の一階層分に相当する段数
		int F = sc.nextInt();
		//ステア君がいる階層
		int floar = S / F + 1;
		System.out.println(floar);
	}
}
0