結果

問題 No.337 P versus NP
ユーザー mobius_bkstmobius_bkst
提出日時 2016-01-29 22:45:28
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 879 bytes
コンパイル時間 5,010 ms
コンパイル使用メモリ 80,424 KB
実行使用メモリ 53,596 KB
最終ジャッジ日時 2023-10-21 17:09:34
合計ジャッジ時間 5,746 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
53,580 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 56 ms
53,584 KB
testcase_04 WA -
testcase_05 AC 55 ms
53,572 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 56 ms
53,584 KB
testcase_11 WA -
testcase_12 AC 54 ms
52,460 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 55 ms
53,584 KB
testcase_16 AC 54 ms
51,540 KB
testcase_17 AC 56 ms
52,536 KB
testcase_18 AC 56 ms
52,484 KB
testcase_19 AC 54 ms
52,568 KB
testcase_20 AC 56 ms
53,576 KB
testcase_21 WA -
testcase_22 AC 55 ms
53,576 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[0] == 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