結果

問題 No.46 はじめのn歩
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-04-23 21:18:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 459 bytes
コンパイル時間 1,638 ms
コンパイル使用メモリ 70,872 KB
実行使用メモリ 49,348 KB
最終ジャッジ日時 2023-09-29 16:01:34
合計ジャッジ時間 2,649 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
49,252 KB
testcase_01 AC 36 ms
49,348 KB
testcase_02 AC 35 ms
49,176 KB
testcase_03 AC 35 ms
49,108 KB
testcase_04 AC 34 ms
49,136 KB
testcase_05 AC 35 ms
49,276 KB
testcase_06 AC 39 ms
49,112 KB
testcase_07 AC 40 ms
49,348 KB
testcase_08 AC 38 ms
49,256 KB
testcase_09 AC 39 ms
49,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
        String[] line = reader.readLine().split(" ");
        int a = Integer.parseInt(line[0]);
        int b = Integer.parseInt(line[1]);
        System.out.println((b+a-1)/a);
        
    }
}
0