結果

問題 No.46 はじめのn歩
ユーザー kurobei72kurobei72
提出日時 2018-01-18 20:02:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 1,854 ms
コンパイル使用メモリ 71,416 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-08-25 23:24:10
合計ジャッジ時間 3,752 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
56,304 KB
testcase_01 AC 113 ms
55,664 KB
testcase_02 AC 114 ms
55,796 KB
testcase_03 AC 116 ms
55,996 KB
testcase_04 AC 115 ms
55,688 KB
testcase_05 AC 115 ms
55,664 KB
testcase_06 AC 115 ms
55,356 KB
testcase_07 AC 115 ms
55,620 KB
testcase_08 AC 115 ms
55,624 KB
testcase_09 AC 114 ms
55,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.lang.Integer;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        if (b%a == 0) {
            System.out.println(b/a);
        } else {
        System.out.println(b/a+1);
        }
    }
}
0