結果

問題 No.337 P versus NP
ユーザー mits58mits58
提出日時 2016-05-05 13:44:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 447 bytes
コンパイル時間 2,299 ms
コンパイル使用メモリ 74,588 KB
実行使用メモリ 54,428 KB
最終ジャッジ日時 2024-04-15 13:10:29
合計ジャッジ時間 7,368 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
53,640 KB
testcase_01 AC 165 ms
53,884 KB
testcase_02 AC 165 ms
53,860 KB
testcase_03 AC 160 ms
54,028 KB
testcase_04 AC 148 ms
54,092 KB
testcase_05 AC 147 ms
54,060 KB
testcase_06 AC 149 ms
54,148 KB
testcase_07 AC 149 ms
54,192 KB
testcase_08 AC 150 ms
54,120 KB
testcase_09 AC 149 ms
54,236 KB
testcase_10 AC 148 ms
54,428 KB
testcase_11 AC 148 ms
54,044 KB
testcase_12 AC 152 ms
53,932 KB
testcase_13 AC 151 ms
53,968 KB
testcase_14 AC 147 ms
54,204 KB
testcase_15 AC 148 ms
54,072 KB
testcase_16 AC 154 ms
54,168 KB
testcase_17 AC 149 ms
53,996 KB
testcase_18 AC 149 ms
54,196 KB
testcase_19 AC 146 ms
54,396 KB
testcase_20 AC 151 ms
54,096 KB
testcase_21 AC 147 ms
54,312 KB
testcase_22 AC 145 ms
54,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
        	int n=sc.nextInt();
        	int p=sc.nextInt();
        	//P=NPP=NP なら =,P≠NPP≠NP なら != と 1 行で出力し, 最後に改行を出力してください.
        	if(p==n*p) System.out.println("=");
        	else System.out.println("!=");
        }
    }
}
0