結果

問題 No.337 P versus NP
ユーザー sasakkisasakki
提出日時 2016-03-10 11:35:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 2,246 ms
コンパイル使用メモリ 73,740 KB
実行使用メモリ 57,604 KB
最終ジャッジ日時 2023-10-24 22:21:36
合計ジャッジ時間 5,871 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
57,288 KB
testcase_01 AC 122 ms
57,580 KB
testcase_02 AC 109 ms
56,232 KB
testcase_03 AC 118 ms
57,144 KB
testcase_04 AC 118 ms
57,528 KB
testcase_05 AC 131 ms
57,276 KB
testcase_06 AC 121 ms
57,464 KB
testcase_07 AC 119 ms
57,400 KB
testcase_08 AC 119 ms
57,420 KB
testcase_09 AC 120 ms
57,328 KB
testcase_10 AC 120 ms
57,356 KB
testcase_11 AC 118 ms
57,496 KB
testcase_12 AC 119 ms
57,344 KB
testcase_13 AC 120 ms
57,488 KB
testcase_14 AC 128 ms
57,132 KB
testcase_15 AC 118 ms
57,412 KB
testcase_16 AC 120 ms
57,604 KB
testcase_17 AC 118 ms
57,372 KB
testcase_18 AC 108 ms
56,252 KB
testcase_19 AC 117 ms
57,408 KB
testcase_20 AC 113 ms
56,808 KB
testcase_21 AC 118 ms
57,484 KB
testcase_22 AC 119 ms
57,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class main{
    public static void main(String srgs[]){
	Scanner scan = new Scanner(System.in);

	int N = scan.nextInt();
	int P = scan.nextInt();

	if(P == N * P){
	    System.out.println("=");
	}
	else{
	    System.out.println("!=");
	}
    }
}
0