結果

問題 No.46 はじめのn歩
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-04-03 05:09:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 111 ms / 5,000 ms
コード長 734 bytes
コンパイル時間 2,631 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 56,556 KB
最終ジャッジ日時 2023-09-17 03:55:04
合計ジャッジ時間 4,336 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
55,876 KB
testcase_01 AC 105 ms
55,992 KB
testcase_02 AC 105 ms
55,680 KB
testcase_03 AC 103 ms
55,912 KB
testcase_04 AC 106 ms
56,092 KB
testcase_05 AC 102 ms
56,204 KB
testcase_06 AC 106 ms
56,032 KB
testcase_07 AC 107 ms
55,604 KB
testcase_08 AC 111 ms
56,556 KB
testcase_09 AC 107 ms
55,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//No.46 はじめのn歩

import java.util.*;
import java.io.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;

public class No46 {
    
    static final Scanner sc = new Scanner(System.in);
    static final PrintWriter out = new PrintWriter(System.out,false);

    static void solve() {
        int a = sc.nextInt();
        int b = sc.nextInt();
        out.println((b/a+(b%a==0?0:1)));
    }

    public static void main(String[] args) {
        long start = System.currentTimeMillis();

        solve();
        out.flush();

        long end = System.currentTimeMillis();
        //trace(end-start + "ms");
        sc.close();
    }

    static void trace(Object... o) { System.out.println(deepToString(o));}
}
0