結果

問題 No.46 はじめのn歩
ユーザー asf asf
提出日時 2020-05-14 06:57:30
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 4,611 ms
コンパイル使用メモリ 75,276 KB
実行使用メモリ 55,912 KB
最終ジャッジ日時 2024-09-14 18:44:45
合計ジャッジ時間 6,655 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();
        int res = 0;
        res += b / a;
        if (b % a != 0) {
            res++;
        }
        System.out.println(res);
    }
}
0