結果

問題 No.46 はじめのn歩
ユーザー Hiroaki KonoHiroaki Kono
提出日時 2017-10-26 20:22:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 5,000 ms
コード長 386 bytes
コンパイル時間 3,737 ms
コンパイル使用メモリ 74,760 KB
実行使用メモリ 54,112 KB
最終ジャッジ日時 2024-05-01 15:15:39
合計ジャッジ時間 4,564 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,112 KB
testcase_01 AC 117 ms
54,104 KB
testcase_02 AC 104 ms
52,960 KB
testcase_03 AC 105 ms
52,908 KB
testcase_04 AC 107 ms
52,576 KB
testcase_05 AC 104 ms
52,348 KB
testcase_06 AC 113 ms
53,772 KB
testcase_07 AC 118 ms
53,812 KB
testcase_08 AC 114 ms
54,068 KB
testcase_09 AC 116 ms
54,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        Integer size = s.nextInt();
        Integer distance = s.nextInt();
        if (distance % size == 0) {
            System.out.println(distance / size);
        } else {
            System.out.println(distance / size + 1);
        }
    }
}
0