結果

問題 No.46 はじめのn歩
ユーザー KatoooooKatooooo
提出日時 2017-09-11 14:37:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 383 bytes
コンパイル時間 2,201 ms
コンパイル使用メモリ 74,176 KB
実行使用メモリ 41,356 KB
最終ジャッジ日時 2024-04-25 06:43:48
合計ジャッジ時間 3,746 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
40,032 KB
testcase_01 AC 126 ms
41,204 KB
testcase_02 AC 114 ms
39,984 KB
testcase_03 AC 123 ms
40,848 KB
testcase_04 AC 114 ms
40,816 KB
testcase_05 AC 111 ms
40,072 KB
testcase_06 AC 123 ms
40,980 KB
testcase_07 AC 126 ms
41,356 KB
testcase_08 AC 119 ms
40,484 KB
testcase_09 AC 110 ms
40,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner br = new Scanner(System.in);
        int a = br.nextInt();
        int b = br.nextInt();
        
        if(b%a==0){
            System.out.print(b/a);
        }else{
            System.out.print((int)(b/a)+1);
        }
    }
}
0