結果

問題 No.485 方程式のお勉強
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-04 10:58:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 570 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 74,064 KB
実行使用メモリ 50,380 KB
最終ジャッジ日時 2024-04-14 23:20:37
合計ジャッジ時間 3,558 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
50,356 KB
testcase_01 AC 54 ms
49,876 KB
testcase_02 AC 55 ms
50,280 KB
testcase_03 AC 56 ms
50,264 KB
testcase_04 AC 55 ms
50,344 KB
testcase_05 AC 54 ms
50,024 KB
testcase_06 AC 54 ms
49,948 KB
testcase_07 AC 54 ms
50,020 KB
testcase_08 AC 55 ms
50,076 KB
testcase_09 AC 55 ms
50,296 KB
testcase_10 AC 53 ms
50,084 KB
testcase_11 AC 54 ms
50,372 KB
testcase_12 AC 54 ms
50,380 KB
testcase_13 AC 53 ms
50,340 KB
testcase_14 AC 54 ms
50,080 KB
testcase_15 AC 55 ms
50,240 KB
testcase_16 AC 54 ms
50,292 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