結果

問題 No.337 P versus NP
ユーザー tentententen
提出日時 2020-11-11 09:27:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 71,184 KB
実行使用メモリ 56,200 KB
最終ジャッジ日時 2023-09-30 00:24:37
合計ジャッジ時間 5,880 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,484 KB
testcase_01 AC 118 ms
55,812 KB
testcase_02 AC 119 ms
55,912 KB
testcase_03 AC 122 ms
55,968 KB
testcase_04 AC 118 ms
55,884 KB
testcase_05 AC 118 ms
55,748 KB
testcase_06 AC 119 ms
56,200 KB
testcase_07 AC 118 ms
55,956 KB
testcase_08 AC 118 ms
56,128 KB
testcase_09 AC 116 ms
55,744 KB
testcase_10 AC 118 ms
55,668 KB
testcase_11 AC 117 ms
55,848 KB
testcase_12 AC 119 ms
55,884 KB
testcase_13 AC 117 ms
56,056 KB
testcase_14 AC 117 ms
55,596 KB
testcase_15 AC 118 ms
55,884 KB
testcase_16 AC 117 ms
55,584 KB
testcase_17 AC 118 ms
55,532 KB
testcase_18 AC 118 ms
55,672 KB
testcase_19 AC 117 ms
55,272 KB
testcase_20 AC 122 ms
56,040 KB
testcase_21 AC 121 ms
55,824 KB
testcase_22 AC 118 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int p = sc.nextInt();
        if (p == n * p) {
            System.out.println("=");
        } else {
            System.out.println("!=");
        }
    }
}
0