結果

問題 No.46 はじめのn歩
ユーザー kotonakatekotonakate
提出日時 2016-08-06 15:12:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 5,000 ms
コード長 536 bytes
コンパイル時間 2,026 ms
コンパイル使用メモリ 73,260 KB
実行使用メモリ 37,060 KB
最終ジャッジ日時 2024-04-24 19:06:00
合計ジャッジ時間 2,847 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
37,000 KB
testcase_01 AC 45 ms
36,964 KB
testcase_02 AC 46 ms
36,976 KB
testcase_03 AC 46 ms
37,004 KB
testcase_04 AC 45 ms
36,988 KB
testcase_05 AC 46 ms
36,800 KB
testcase_06 AC 46 ms
36,908 KB
testcase_07 AC 45 ms
36,988 KB
testcase_08 AC 46 ms
37,060 KB
testcase_09 AC 44 ms
36,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String str[] = line.split(" ",2);
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if (b % a == 0) {
            System.out.println(b / a);
        } else {
            System.out.println(b / a + 1);
        }
    }
}
0