結果

問題 No.337 P versus NP
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-05 09:32:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 597 bytes
コンパイル時間 1,904 ms
コンパイル使用メモリ 72,268 KB
実行使用メモリ 49,700 KB
最終ジャッジ日時 2023-10-12 09:40:44
合計ジャッジ時間 3,906 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,320 KB
testcase_01 AC 44 ms
47,640 KB
testcase_02 AC 43 ms
49,308 KB
testcase_03 AC 43 ms
49,204 KB
testcase_04 AC 44 ms
49,128 KB
testcase_05 AC 43 ms
49,292 KB
testcase_06 AC 43 ms
49,156 KB
testcase_07 AC 44 ms
49,388 KB
testcase_08 AC 44 ms
49,236 KB
testcase_09 AC 44 ms
49,300 KB
testcase_10 AC 43 ms
49,532 KB
testcase_11 AC 43 ms
49,700 KB
testcase_12 AC 43 ms
49,120 KB
testcase_13 AC 42 ms
49,192 KB
testcase_14 AC 43 ms
49,348 KB
testcase_15 AC 42 ms
49,184 KB
testcase_16 AC 43 ms
49,532 KB
testcase_17 AC 42 ms
49,548 KB
testcase_18 AC 42 ms
49,204 KB
testcase_19 AC 43 ms
49,092 KB
testcase_20 AC 43 ms
49,184 KB
testcase_21 AC 43 ms
49,108 KB
testcase_22 AC 42 ms
49,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
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 N = Integer.parseInt(inputs[0]);
        int P = Integer.parseInt(inputs[1]);
        if(P == N*P) {
            System.out.println("=");
        } else {
            System.out.println("!=");
        }
    }
}
0