結果

問題 No.46 はじめのn歩
ユーザー 1kohei11kohei1
提出日時 2017-06-22 19:11:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 443 bytes
コンパイル時間 2,112 ms
コンパイル使用メモリ 77,920 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-04-10 10:31:04
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
54,092 KB
testcase_01 AC 136 ms
54,216 KB
testcase_02 AC 133 ms
54,096 KB
testcase_03 AC 133 ms
54,300 KB
testcase_04 AC 133 ms
53,956 KB
testcase_05 AC 132 ms
54,164 KB
testcase_06 AC 136 ms
54,192 KB
testcase_07 AC 133 ms
54,084 KB
testcase_08 AC 134 ms
54,216 KB
testcase_09 AC 132 ms
54,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// package whatever; // don't place package name!

import java.io.*;
import java.util.Scanner;

class Main
{
    public static void main (String[] args) throws java.lang.Exception
    {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        
        if (b % a == 0) {
            System.out.println(b / a);
        } else {
            System.out.println(b / a + 1);
        }
    }
}
0