結果

問題 No.337 P versus NP
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-01-30 08:16:39
言語 Java19
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 2,347 ms
コンパイル使用メモリ 74,124 KB
実行使用メモリ 57,592 KB
最終ジャッジ日時 2023-10-21 17:49:09
合計ジャッジ時間 6,073 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,356 KB
testcase_01 AC 132 ms
57,384 KB
testcase_02 AC 131 ms
57,140 KB
testcase_03 AC 135 ms
57,416 KB
testcase_04 AC 135 ms
57,124 KB
testcase_05 AC 135 ms
57,352 KB
testcase_06 AC 133 ms
57,332 KB
testcase_07 AC 134 ms
57,400 KB
testcase_08 AC 134 ms
57,416 KB
testcase_09 AC 135 ms
57,080 KB
testcase_10 AC 135 ms
57,472 KB
testcase_11 AC 132 ms
55,516 KB
testcase_12 AC 131 ms
57,380 KB
testcase_13 AC 136 ms
57,352 KB
testcase_14 AC 133 ms
57,384 KB
testcase_15 AC 133 ms
57,324 KB
testcase_16 AC 134 ms
57,592 KB
testcase_17 AC 135 ms
57,424 KB
testcase_18 AC 135 ms
57,308 KB
testcase_19 AC 131 ms
57,472 KB
testcase_20 AC 134 ms
57,320 KB
testcase_21 AC 130 ms
57,416 KB
testcase_22 AC 131 ms
55,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int p = in.nextInt();

        if(p != n *p) {
            System.out.println("!=");
        } else {
            System.out.println("=");
        }
    }
}
0