結果

問題 No.46 はじめのn歩
ユーザー ryunocchiryunocchi
提出日時 2019-04-06 23:28:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 106 ms / 5,000 ms
コード長 324 bytes
コンパイル時間 3,200 ms
コンパイル使用メモリ 71,140 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-09-07 09:04:12
合計ジャッジ時間 4,955 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
56,228 KB
testcase_01 AC 101 ms
55,732 KB
testcase_02 AC 99 ms
53,644 KB
testcase_03 AC 99 ms
55,852 KB
testcase_04 AC 105 ms
55,500 KB
testcase_05 AC 99 ms
54,240 KB
testcase_06 AC 100 ms
56,032 KB
testcase_07 AC 100 ms
55,652 KB
testcase_08 AC 102 ms
56,048 KB
testcase_09 AC 106 ms
56,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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