結果

問題 No.46 はじめのn歩
ユーザー hhgfhn1hhgfhn1
提出日時 2018-08-20 22:31:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 5,000 ms
コード長 327 bytes
コンパイル時間 2,015 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 41,740 KB
最終ジャッジ日時 2024-05-05 15:45:03
合計ジャッジ時間 4,105 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,144 KB
testcase_01 AC 131 ms
41,500 KB
testcase_02 AC 131 ms
41,020 KB
testcase_03 AC 133 ms
41,144 KB
testcase_04 AC 131 ms
41,356 KB
testcase_05 AC 133 ms
41,536 KB
testcase_06 AC 131 ms
41,480 KB
testcase_07 AC 134 ms
41,052 KB
testcase_08 AC 138 ms
41,740 KB
testcase_09 AC 135 ms
41,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class sampleA {
  public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        if(b%a==0){
            System.out.print(b/a);
        }
        else{
            System.out.print(b/a+1);
        }
  }
}
0