結果

問題 No.46 はじめのn歩
ユーザー nogisunnogisun
提出日時 2020-03-19 10:27:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 3,558 ms
コンパイル使用メモリ 74,204 KB
実行使用メモリ 41,368 KB
最終ジャッジ日時 2024-05-08 03:08:41
合計ジャッジ時間 5,047 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
40,152 KB
testcase_01 AC 116 ms
40,544 KB
testcase_02 AC 125 ms
41,100 KB
testcase_03 AC 112 ms
40,148 KB
testcase_04 AC 111 ms
40,076 KB
testcase_05 AC 119 ms
41,040 KB
testcase_06 AC 125 ms
41,156 KB
testcase_07 AC 126 ms
41,368 KB
testcase_08 AC 113 ms
39,932 KB
testcase_09 AC 109 ms
40,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No46{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int hohaba = sc.nextInt();
        int kukan = sc.nextInt();
        if (kukan%hohaba == 0){
            System.out.println(kukan/hohaba);
        } else {
            System.out.println(kukan/hohaba+1);
        }
    }
}
0