結果

問題 No.46 はじめのn歩
ユーザー GrenacheGrenache
提出日時 2015-06-30 18:25:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 303 bytes
コンパイル時間 4,656 ms
コンパイル使用メモリ 70,892 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2023-09-22 04:42:42
合計ジャッジ時間 6,321 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,776 KB
testcase_01 AC 118 ms
55,756 KB
testcase_02 AC 119 ms
55,576 KB
testcase_03 AC 118 ms
55,332 KB
testcase_04 AC 118 ms
55,528 KB
testcase_05 AC 118 ms
55,604 KB
testcase_06 AC 119 ms
55,596 KB
testcase_07 AC 119 ms
55,492 KB
testcase_08 AC 118 ms
56,232 KB
testcase_09 AC 117 ms
55,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder46 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        
        System.out.println((b + a - 1) / a);
        
        sc.close();
    }
}
0