結果

問題 No.388 階段 (1)
ユーザー kuramubonnkuramubonn
提出日時 2023-02-01 16:34:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 2,024 ms
コンパイル使用メモリ 71,880 KB
実行使用メモリ 56,028 KB
最終ジャッジ日時 2023-09-14 03:34:19
合計ジャッジ時間 5,074 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,368 KB
testcase_01 AC 133 ms
53,632 KB
testcase_02 AC 130 ms
55,384 KB
testcase_03 AC 134 ms
56,028 KB
testcase_04 AC 131 ms
55,632 KB
testcase_05 AC 132 ms
55,468 KB
testcase_06 AC 128 ms
55,768 KB
testcase_07 AC 133 ms
55,804 KB
testcase_08 AC 135 ms
55,432 KB
testcase_09 AC 129 ms
53,596 KB
testcase_10 AC 130 ms
55,476 KB
testcase_11 AC 131 ms
55,404 KB
testcase_12 AC 131 ms
55,556 KB
testcase_13 AC 131 ms
55,780 KB
testcase_14 AC 130 ms
55,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(),b = sc.nextInt();
		System.out.println((int)Math.floor((double)a/b) + 1);
	}
}
0