結果

問題 No.46 はじめのn歩
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-09 20:06:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 153 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 2,288 ms
コンパイル使用メモリ 74,312 KB
実行使用メモリ 41,340 KB
最終ジャッジ日時 2024-05-04 00:20:53
合計ジャッジ時間 4,453 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
41,340 KB
testcase_01 AC 139 ms
41,216 KB
testcase_02 AC 140 ms
41,060 KB
testcase_03 AC 139 ms
41,100 KB
testcase_04 AC 138 ms
41,172 KB
testcase_05 AC 136 ms
41,276 KB
testcase_06 AC 139 ms
41,112 KB
testcase_07 AC 138 ms
41,336 KB
testcase_08 AC 137 ms
41,156 KB
testcase_09 AC 137 ms
40,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

        System.out.println(c);
    }
}
0