結果

問題 No.485 方程式のお勉強
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-04 10:58:05
言語 Java19
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 570 bytes
コンパイル時間 2,368 ms
コンパイル使用メモリ 72,232 KB
実行使用メモリ 49,816 KB
最終ジャッジ日時 2023-07-27 10:53:28
合計ジャッジ時間 4,000 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,324 KB
testcase_01 AC 43 ms
49,288 KB
testcase_02 AC 43 ms
49,284 KB
testcase_03 AC 43 ms
49,216 KB
testcase_04 AC 44 ms
49,360 KB
testcase_05 AC 44 ms
49,260 KB
testcase_06 AC 44 ms
49,204 KB
testcase_07 AC 44 ms
49,728 KB
testcase_08 AC 44 ms
49,268 KB
testcase_09 AC 45 ms
47,552 KB
testcase_10 AC 44 ms
49,464 KB
testcase_11 AC 44 ms
49,368 KB
testcase_12 AC 43 ms
49,164 KB
testcase_13 AC 44 ms
49,816 KB
testcase_14 AC 44 ms
49,296 KB
testcase_15 AC 44 ms
49,188 KB
testcase_16 AC 44 ms
49,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        int A = Integer.parseInt(inputs[0]);
        int B = Integer.parseInt(inputs[1]);
        if( B%A!=0) {
            System.out.println("NO");
        } else {
            System.out.println(B/A);
        }
    }
}
0