結果

問題 No.337 P versus NP
ユーザー jimanojimano
提出日時 2018-01-13 17:28:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 5,086 ms
コンパイル使用メモリ 72,372 KB
実行使用メモリ 56,112 KB
最終ジャッジ日時 2023-08-25 15:51:20
合計ジャッジ時間 7,896 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,044 KB
testcase_01 AC 125 ms
55,472 KB
testcase_02 AC 125 ms
55,596 KB
testcase_03 AC 125 ms
56,012 KB
testcase_04 AC 124 ms
56,076 KB
testcase_05 AC 125 ms
55,644 KB
testcase_06 AC 125 ms
55,772 KB
testcase_07 AC 124 ms
55,636 KB
testcase_08 AC 126 ms
55,868 KB
testcase_09 AC 124 ms
55,744 KB
testcase_10 AC 126 ms
55,816 KB
testcase_11 AC 127 ms
55,792 KB
testcase_12 AC 127 ms
55,648 KB
testcase_13 AC 127 ms
55,900 KB
testcase_14 AC 127 ms
55,468 KB
testcase_15 AC 127 ms
55,532 KB
testcase_16 AC 124 ms
56,112 KB
testcase_17 AC 123 ms
55,740 KB
testcase_18 AC 122 ms
55,640 KB
testcase_19 AC 123 ms
55,704 KB
testcase_20 AC 124 ms
56,048 KB
testcase_21 AC 122 ms
55,772 KB
testcase_22 AC 123 ms
55,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;

import java.util.Scanner;

public class No0337 {
	public static void main(String[] args) {
		try (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