結果

問題 No.46 はじめのn歩
ユーザー tts-k-kudotts-k-kudo
提出日時 2019-08-02 21:29:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 252 bytes
コンパイル時間 3,048 ms
コンパイル使用メモリ 72,272 KB
実行使用メモリ 56,328 KB
最終ジャッジ日時 2023-09-18 18:28:16
合計ジャッジ時間 5,050 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,760 KB
testcase_01 AC 123 ms
55,960 KB
testcase_02 AC 122 ms
55,756 KB
testcase_03 AC 123 ms
55,988 KB
testcase_04 AC 122 ms
55,616 KB
testcase_05 AC 124 ms
56,000 KB
testcase_06 AC 122 ms
55,488 KB
testcase_07 AC 123 ms
56,328 KB
testcase_08 AC 123 ms
55,964 KB
testcase_09 AC 125 ms
56,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class FIRST_N_STEPS {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println((b -1 + a) / a );
    }
}
0