結果

問題 No.337 P versus NP
ユーザー mobius_bkstmobius_bkst
提出日時 2016-01-29 22:47:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 892 bytes
コンパイル時間 3,543 ms
コンパイル使用メモリ 80,272 KB
実行使用メモリ 53,456 KB
最終ジャッジ日時 2023-10-21 17:10:44
合計ジャッジ時間 5,655 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
53,448 KB
testcase_01 AC 53 ms
53,452 KB
testcase_02 AC 52 ms
53,444 KB
testcase_03 AC 52 ms
53,432 KB
testcase_04 AC 52 ms
53,444 KB
testcase_05 AC 54 ms
53,440 KB
testcase_06 AC 53 ms
53,452 KB
testcase_07 AC 52 ms
53,444 KB
testcase_08 AC 54 ms
53,444 KB
testcase_09 AC 53 ms
53,444 KB
testcase_10 AC 52 ms
52,320 KB
testcase_11 AC 56 ms
53,436 KB
testcase_12 AC 53 ms
53,440 KB
testcase_13 AC 53 ms
53,452 KB
testcase_14 AC 52 ms
53,436 KB
testcase_15 AC 54 ms
53,440 KB
testcase_16 AC 53 ms
53,440 KB
testcase_17 AC 54 ms
53,440 KB
testcase_18 AC 52 ms
53,444 KB
testcase_19 AC 52 ms
53,444 KB
testcase_20 AC 52 ms
53,452 KB
testcase_21 AC 53 ms
53,456 KB
testcase_22 AC 53 ms
52,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class No337 {
    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(
                    System.in));
            int[] a = strToIntArray(br.readLine());

            if (a[1] == a[0] * a[1]) {
                System.out.println("=");
            } else {
                System.out.println("!=");
            }

        } catch (Exception e) {
            e.printStackTrace();
            System.err.println("Error:" + e.getMessage());
        }
    }

    static int[] strToIntArray(String S) {
        String[] strArray = S.split(" ");
        int[] intArray = new int[strArray.length];
        for (int i = 0; i < strArray.length; i++) {
            intArray[i] = Integer.parseInt(strArray[i]);
        }
        return intArray;
    }
}
0