結果

問題 No.337 P versus NP
ユーザー hikari2004hikari2004
提出日時 2016-04-20 09:13:22
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 3,137 ms
コンパイル使用メモリ 71,728 KB
実行使用メモリ 56,168 KB
最終ジャッジ日時 2023-07-27 16:35:22
合計ジャッジ時間 7,290 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,920 KB
testcase_01 AC 124 ms
56,168 KB
testcase_02 AC 124 ms
55,672 KB
testcase_03 AC 123 ms
55,852 KB
testcase_04 AC 122 ms
53,932 KB
testcase_05 AC 123 ms
55,796 KB
testcase_06 AC 122 ms
56,104 KB
testcase_07 AC 127 ms
55,800 KB
testcase_08 AC 123 ms
55,916 KB
testcase_09 AC 122 ms
55,800 KB
testcase_10 AC 122 ms
55,776 KB
testcase_11 AC 123 ms
56,096 KB
testcase_12 AC 125 ms
56,080 KB
testcase_13 AC 123 ms
55,648 KB
testcase_14 AC 124 ms
55,860 KB
testcase_15 AC 124 ms
55,872 KB
testcase_16 AC 123 ms
55,832 KB
testcase_17 AC 124 ms
56,044 KB
testcase_18 AC 121 ms
55,792 KB
testcase_19 AC 123 ms
55,984 KB
testcase_20 AC 123 ms
55,912 KB
testcase_21 AC 122 ms
53,636 KB
testcase_22 AC 119 ms
55,468 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