結果

問題 No.46 はじめのn歩
ユーザー zan_jt84zan_jt84
提出日時 2016-02-23 15:30:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 428 bytes
コンパイル時間 3,453 ms
コンパイル使用メモリ 74,188 KB
実行使用メモリ 57,488 KB
最終ジャッジ日時 2023-10-23 19:25:59
合計ジャッジ時間 5,402 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
57,488 KB
testcase_01 AC 121 ms
57,408 KB
testcase_02 AC 120 ms
57,380 KB
testcase_03 AC 118 ms
57,204 KB
testcase_04 AC 121 ms
57,468 KB
testcase_05 AC 118 ms
57,344 KB
testcase_06 AC 121 ms
57,196 KB
testcase_07 AC 121 ms
57,468 KB
testcase_08 AC 121 ms
56,976 KB
testcase_09 AC 111 ms
56,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Pract6
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String s1  = sc.next();
        String s2 = sc.next();
        int a = Integer.parseInt(s1);
        int b = Integer.parseInt(s2);
        
        if(b%a==0){
            System.out.println(b / a);
        }else{
            System.out.println(b / a + 1);
        }
    }
}
        
0