結果

問題 No.388 階段 (1)
ユーザー MatumoMatumo
提出日時 2018-07-13 02:13:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 171 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 2,508 ms
コンパイル使用メモリ 74,564 KB
実行使用メモリ 41,952 KB
最終ジャッジ日時 2024-04-15 08:35:00
合計ジャッジ時間 5,715 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 161 ms
41,276 KB
testcase_01 AC 165 ms
41,952 KB
testcase_02 AC 161 ms
41,584 KB
testcase_03 AC 156 ms
41,628 KB
testcase_04 AC 158 ms
41,500 KB
testcase_05 AC 157 ms
41,280 KB
testcase_06 AC 157 ms
41,564 KB
testcase_07 AC 160 ms
41,584 KB
testcase_08 AC 171 ms
41,108 KB
testcase_09 AC 160 ms
41,168 KB
testcase_10 AC 157 ms
41,668 KB
testcase_11 AC 156 ms
41,712 KB
testcase_12 AC 155 ms
41,572 KB
testcase_13 AC 165 ms
41,804 KB
testcase_14 AC 163 ms
41,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int s = sc.nextInt();
		int f = sc.nextInt();
		
		System.out.println((int)Math.floor((double)s / f) + 1);
		
    }
}
0