結果

問題 No.46 はじめのn歩
ユーザー ryunocchiryunocchi
提出日時 2019-04-06 23:28:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 71,560 KB
実行使用メモリ 56,128 KB
最終ジャッジ日時 2023-09-07 09:02:48
合計ジャッジ時間 4,272 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 128 ms
55,828 KB
testcase_02 WA -
testcase_03 AC 125 ms
55,480 KB
testcase_04 AC 126 ms
55,896 KB
testcase_05 AC 134 ms
55,928 KB
testcase_06 WA -
testcase_07 AC 126 ms
55,960 KB
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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);
        }
        System.out.println(s + 1);
    }
}
0