結果

問題 No.337 P versus NP
ユーザー hikari2004hikari2004
提出日時 2016-04-20 09:13:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 3,112 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 54,584 KB
最終ジャッジ日時 2024-04-15 03:50:26
合計ジャッジ時間 6,740 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
54,000 KB
testcase_01 AC 126 ms
53,868 KB
testcase_02 AC 126 ms
54,320 KB
testcase_03 AC 122 ms
54,128 KB
testcase_04 AC 125 ms
54,032 KB
testcase_05 AC 124 ms
54,220 KB
testcase_06 AC 122 ms
53,992 KB
testcase_07 AC 121 ms
54,104 KB
testcase_08 AC 121 ms
54,152 KB
testcase_09 AC 120 ms
54,584 KB
testcase_10 AC 120 ms
54,248 KB
testcase_11 AC 120 ms
54,144 KB
testcase_12 AC 121 ms
54,272 KB
testcase_13 AC 123 ms
54,252 KB
testcase_14 AC 114 ms
53,104 KB
testcase_15 AC 122 ms
54,204 KB
testcase_16 AC 119 ms
54,020 KB
testcase_17 AC 120 ms
54,200 KB
testcase_18 AC 109 ms
52,768 KB
testcase_19 AC 120 ms
54,192 KB
testcase_20 AC 124 ms
54,252 KB
testcase_21 AC 124 ms
54,084 KB
testcase_22 AC 124 ms
54,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicorder;

import java.util.Scanner;

public class No337 {
	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