結果

問題 No.46 はじめのn歩
ユーザー face4
提出日時 2018-04-09 17:20:01
言語 Java
(openjdk 23)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 496 bytes
コンパイル時間 1,944 ms
コンパイル使用メモリ 74,572 KB
実行使用メモリ 50,312 KB
最終ジャッジ日時 2024-06-26 20:38:25
合計ジャッジ時間 3,019 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #


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

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]); 

        int result = b / a + ((b % a == 0) ? 0 : 1);
        System.out.println(result);
    }
}      
0