結果

問題 No.46 はじめのn歩
ユーザー キョウチクキョウチク
提出日時 2019-09-20 03:23:30
言語 Java19
(openjdk 21)
結果
AC  
実行時間 616 ms / 5,000 ms
コード長 501 bytes
コンパイル時間 3,413 ms
コンパイル使用メモリ 72,208 KB
実行使用メモリ 49,724 KB
最終ジャッジ日時 2023-10-11 10:20:40
合計ジャッジ時間 5,247 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,296 KB
testcase_01 AC 43 ms
49,400 KB
testcase_02 AC 43 ms
49,384 KB
testcase_03 AC 43 ms
47,864 KB
testcase_04 AC 44 ms
49,724 KB
testcase_05 AC 43 ms
49,396 KB
testcase_06 AC 43 ms
49,396 KB
testcase_07 AC 44 ms
49,416 KB
testcase_08 AC 616 ms
47,924 KB
testcase_09 AC 42 ms
49,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Test{
    public static void main(String[] args) throws IOException{
        BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
        String[] s = buf.readLine().split(" ");
        int a = Integer.parseInt(s[0]);
        int b = Integer.parseInt(s[1]);
        int walk=0;
        while (a*walk<b) {
        	walk++;
        }
        System.out.println(walk);
    }
}
0