結果

問題 No.46 はじめのn歩
ユーザー kuramubonnkuramubonn
提出日時 2023-02-01 16:30:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 106 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 1,851 ms
コンパイル使用メモリ 71,032 KB
実行使用メモリ 56,172 KB
最終ジャッジ日時 2023-09-14 03:31:47
合計ジャッジ時間 4,459 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
55,620 KB
testcase_01 AC 102 ms
55,892 KB
testcase_02 AC 103 ms
56,084 KB
testcase_03 AC 103 ms
56,132 KB
testcase_04 AC 103 ms
55,824 KB
testcase_05 AC 104 ms
55,968 KB
testcase_06 AC 102 ms
56,172 KB
testcase_07 AC 106 ms
55,980 KB
testcase_08 AC 102 ms
55,680 KB
testcase_09 AC 101 ms
55,964 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.ceil((double)b/a));
	}
}
0