結果

問題 No.337 P versus NP
ユーザー YamaKasaYamaKasa
提出日時 2018-05-03 21:30:49
言語 Java19
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 71,244 KB
実行使用メモリ 56,340 KB
最終ジャッジ日時 2023-09-10 09:23:49
合計ジャッジ時間 6,225 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,844 KB
testcase_01 AC 126 ms
55,720 KB
testcase_02 AC 127 ms
55,540 KB
testcase_03 AC 121 ms
55,832 KB
testcase_04 AC 121 ms
55,724 KB
testcase_05 AC 120 ms
56,132 KB
testcase_06 AC 120 ms
55,784 KB
testcase_07 AC 121 ms
56,056 KB
testcase_08 AC 121 ms
55,744 KB
testcase_09 AC 121 ms
55,952 KB
testcase_10 AC 121 ms
56,148 KB
testcase_11 AC 122 ms
56,340 KB
testcase_12 AC 121 ms
55,916 KB
testcase_13 AC 122 ms
56,036 KB
testcase_14 AC 122 ms
55,720 KB
testcase_15 AC 122 ms
56,072 KB
testcase_16 AC 122 ms
56,280 KB
testcase_17 AC 123 ms
56,096 KB
testcase_18 AC 122 ms
56,064 KB
testcase_19 AC 125 ms
56,196 KB
testcase_20 AC 123 ms
55,904 KB
testcase_21 AC 122 ms
56,092 KB
testcase_22 AC 121 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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