結果

問題 No.388 階段 (1)
ユーザー oyafusooyafuso
提出日時 2019-03-11 10:58:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 733 bytes
コンパイル時間 2,132 ms
コンパイル使用メモリ 73,360 KB
実行使用メモリ 55,956 KB
最終ジャッジ日時 2023-09-05 20:03:52
合計ジャッジ時間 4,831 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,764 KB
testcase_01 AC 125 ms
55,920 KB
testcase_02 AC 122 ms
55,772 KB
testcase_03 AC 123 ms
55,660 KB
testcase_04 AC 123 ms
55,520 KB
testcase_05 AC 123 ms
55,904 KB
testcase_06 AC 123 ms
55,624 KB
testcase_07 AC 123 ms
55,912 KB
testcase_08 AC 122 ms
55,656 KB
testcase_09 AC 123 ms
55,760 KB
testcase_10 AC 121 ms
55,712 KB
testcase_11 AC 122 ms
55,664 KB
testcase_12 AC 124 ms
55,920 KB
testcase_13 AC 121 ms
55,956 KB
testcase_14 AC 122 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {

	private static final String SPLIT_STR = " ";

	public static void main(String[] args) {
		// Scanner生成
		Scanner sc = new Scanner(System.in);
		// 入力設定
		String input = sc.nextLine();
		String[] split = input.split(SPLIT_STR);
		List<Integer> numList = new ArrayList<>(split.length);
		for (int i = 0; i < split.length; i++) {
			numList.add(Integer.parseInt(split[i]));
		}
		// Scannerクローズ
		sc.close();

		/* メイン処理開始 */
		// 変数初期化
		int result = 0;
		int S = numList.get(0);
		int F = numList.get(1);
		// 結果設定
		result = (int)Math.floor((double)S / F) + 1;
		/* メイン処理終了 */

		// 結果出力
		System.out.println(result);
	}
}
0