結果

問題 No.46 はじめのn歩
ユーザー DevbotBotDevbotBot
提出日時 2015-06-18 12:05:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 5,830 ms
コンパイル使用メモリ 71,008 KB
実行使用メモリ 56,500 KB
最終ジャッジ日時 2023-09-21 09:25:31
合計ジャッジ時間 4,214 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
55,648 KB
testcase_01 AC 115 ms
56,224 KB
testcase_02 AC 112 ms
56,100 KB
testcase_03 AC 113 ms
55,860 KB
testcase_04 AC 116 ms
56,500 KB
testcase_05 AC 115 ms
55,636 KB
testcase_06 AC 112 ms
55,732 KB
testcase_07 AC 114 ms
55,760 KB
testcase_08 AC 116 ms
55,640 KB
testcase_09 AC 113 ms
55,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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