結果

問題 No.337 P versus NP
ユーザー yamax3232yamax3232
提出日時 2017-02-14 21:06:21
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 3,275 ms
コンパイル使用メモリ 73,048 KB
実行使用メモリ 58,260 KB
最終ジャッジ日時 2023-08-28 16:58:49
合計ジャッジ時間 7,096 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
55,944 KB
testcase_01 AC 114 ms
56,112 KB
testcase_02 AC 113 ms
56,024 KB
testcase_03 AC 115 ms
56,016 KB
testcase_04 AC 115 ms
55,892 KB
testcase_05 AC 114 ms
56,304 KB
testcase_06 AC 114 ms
56,000 KB
testcase_07 AC 115 ms
55,828 KB
testcase_08 AC 116 ms
55,912 KB
testcase_09 AC 116 ms
56,092 KB
testcase_10 AC 120 ms
55,880 KB
testcase_11 AC 118 ms
55,756 KB
testcase_12 AC 117 ms
55,788 KB
testcase_13 AC 117 ms
55,880 KB
testcase_14 AC 117 ms
56,040 KB
testcase_15 AC 119 ms
56,068 KB
testcase_16 AC 117 ms
55,780 KB
testcase_17 AC 117 ms
56,092 KB
testcase_18 AC 115 ms
56,372 KB
testcase_19 AC 115 ms
56,012 KB
testcase_20 AC 116 ms
55,860 KB
testcase_21 AC 116 ms
56,000 KB
testcase_22 AC 116 ms
58,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class PversusNP {

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

}
0