結果

問題 No.337 P versus NP
ユーザー eagleeagle
提出日時 2022-06-16 14:23:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 336 bytes
コンパイル時間 2,240 ms
コンパイル使用メモリ 74,232 KB
実行使用メモリ 41,724 KB
最終ジャッジ日時 2024-04-16 02:17:42
合計ジャッジ時間 6,279 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,600 KB
testcase_01 AC 125 ms
41,268 KB
testcase_02 AC 125 ms
41,484 KB
testcase_03 AC 123 ms
41,556 KB
testcase_04 AC 124 ms
41,504 KB
testcase_05 AC 125 ms
41,560 KB
testcase_06 AC 124 ms
41,376 KB
testcase_07 AC 131 ms
41,500 KB
testcase_08 AC 114 ms
41,388 KB
testcase_09 AC 129 ms
41,724 KB
testcase_10 AC 118 ms
41,432 KB
testcase_11 AC 119 ms
40,224 KB
testcase_12 AC 130 ms
41,688 KB
testcase_13 AC 129 ms
41,412 KB
testcase_14 AC 130 ms
41,344 KB
testcase_15 AC 131 ms
41,216 KB
testcase_16 AC 131 ms
41,240 KB
testcase_17 AC 132 ms
41,336 KB
testcase_18 AC 130 ms
41,228 KB
testcase_19 AC 132 ms
41,660 KB
testcase_20 AC 132 ms
41,412 KB
testcase_21 AC 135 ms
41,336 KB
testcase_22 AC 133 ms
41,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int P = sc.nextInt();
		String ans;
		if(P == N * P) {
			ans = "=";
		} else {
			ans = "!=";
		}
		System.out.println(ans);
	}
}
0