結果

問題 No.46 はじめのn歩
ユーザー tokustokus
提出日時 2021-11-22 21:55:26
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 801 bytes
コンパイル時間 3,043 ms
コンパイル使用メモリ 71,520 KB
実行使用メモリ 50,124 KB
最終ジャッジ日時 2023-09-06 16:42:03
合計ジャッジ時間 3,473 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.stream.Stream;

class Main {
    public static void main(String[] args) {
        no46();
    }
    // はじめのn歩
    private static void no46(){
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        // 一歩
        int a;
        // 区間
        int b;

        try {
            String A = reader.readLine();
            a = Integer.parseInt(A);

            String B = reader.readLine();
            b = Integer.parseInt(B);

            reader.close();
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }

        System.out.println((b / a) + (a % b));
    }
}
0