結果

問題 No.388 階段 (1)
ユーザー yoshito1124yoshito1124
提出日時 2022-03-06 18:35:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 2,904 ms
コンパイル使用メモリ 73,552 KB
実行使用メモリ 56,028 KB
最終ジャッジ日時 2023-09-28 09:41:33
合計ジャッジ時間 5,293 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,680 KB
testcase_01 AC 123 ms
55,876 KB
testcase_02 AC 124 ms
55,480 KB
testcase_03 AC 122 ms
53,772 KB
testcase_04 AC 124 ms
56,012 KB
testcase_05 AC 125 ms
55,892 KB
testcase_06 AC 126 ms
55,796 KB
testcase_07 AC 124 ms
56,028 KB
testcase_08 AC 124 ms
55,872 KB
testcase_09 AC 123 ms
55,880 KB
testcase_10 AC 123 ms
56,024 KB
testcase_11 AC 122 ms
55,752 KB
testcase_12 AC 122 ms
55,616 KB
testcase_13 AC 124 ms
55,684 KB
testcase_14 AC 122 ms
55,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		int result = (int)Math.ceil(a / b);

		if(a % b == 0) {
			result += 1;
		}

		System.out.println(result);

		
		sc.close();
	}
}
0