結果

問題 No.46 はじめのn歩
ユーザー kaoetayakaoetaya
提出日時 2016-11-08 11:37:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 3,421 ms
コンパイル使用メモリ 73,912 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-05-03 23:13:03
合計ジャッジ時間 4,946 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
53,900 KB
testcase_01 AC 116 ms
54,044 KB
testcase_02 AC 103 ms
52,900 KB
testcase_03 AC 130 ms
54,052 KB
testcase_04 AC 132 ms
53,812 KB
testcase_05 AC 113 ms
52,752 KB
testcase_06 AC 119 ms
53,956 KB
testcase_07 AC 114 ms
54,216 KB
testcase_08 AC 113 ms
54,136 KB
testcase_09 AC 113 ms
53,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class pre {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);

		int a = s.nextInt(),b = s.nextInt();
        
		System.out.println((int)(Math.ceil((double)b/a)));
    }
}
0