結果

問題 No.46 はじめのn歩
ユーザー mits58mits58
提出日時 2016-05-05 13:39:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 2,177 ms
コンパイル使用メモリ 74,072 KB
実行使用メモリ 54,276 KB
最終ジャッジ日時 2024-04-15 13:07:49
合計ジャッジ時間 4,248 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
54,276 KB
testcase_01 AC 137 ms
41,540 KB
testcase_02 AC 138 ms
41,332 KB
testcase_03 AC 136 ms
41,500 KB
testcase_04 AC 134 ms
41,500 KB
testcase_05 AC 136 ms
41,572 KB
testcase_06 AC 136 ms
41,388 KB
testcase_07 AC 135 ms
41,500 KB
testcase_08 AC 135 ms
41,592 KB
testcase_09 AC 136 ms
41,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
        	int a=sc.nextInt();
        	int b=sc.nextInt();
        	System.out.println((b+a-1)/a);
        }
    }
}
0