結果

問題 No.337 P versus NP
ユーザー yagi2yagi2
提出日時 2017-04-20 12:51:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 2,140 ms
コンパイル使用メモリ 71,772 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2023-09-27 03:17:46
合計ジャッジ時間 6,057 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,200 KB
testcase_01 AC 115 ms
55,492 KB
testcase_02 AC 118 ms
55,684 KB
testcase_03 AC 116 ms
55,636 KB
testcase_04 AC 117 ms
55,784 KB
testcase_05 AC 117 ms
55,416 KB
testcase_06 AC 118 ms
55,564 KB
testcase_07 AC 117 ms
55,244 KB
testcase_08 AC 117 ms
55,828 KB
testcase_09 AC 117 ms
55,484 KB
testcase_10 AC 117 ms
55,736 KB
testcase_11 AC 116 ms
55,784 KB
testcase_12 AC 118 ms
55,868 KB
testcase_13 AC 115 ms
53,232 KB
testcase_14 AC 118 ms
55,644 KB
testcase_15 AC 118 ms
55,428 KB
testcase_16 AC 117 ms
55,920 KB
testcase_17 AC 116 ms
55,420 KB
testcase_18 AC 117 ms
55,668 KB
testcase_19 AC 116 ms
55,688 KB
testcase_20 AC 118 ms
55,900 KB
testcase_21 AC 116 ms
53,636 KB
testcase_22 AC 117 ms
55,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = Integer.parseInt(sc.next());
        int P = Integer.parseInt(sc.next());

        System.out.println((P == N * P) ? "=" : "!=");
    }
}
0