結果

問題 No.337 P versus NP
ユーザー mtokmtok
提出日時 2016-04-01 16:30:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 523 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 74,376 KB
実行使用メモリ 50,456 KB
最終ジャッジ日時 2024-04-10 07:06:27
合計ジャッジ時間 3,993 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
50,296 KB
testcase_01 AC 51 ms
50,368 KB
testcase_02 AC 51 ms
50,348 KB
testcase_03 AC 50 ms
50,300 KB
testcase_04 AC 50 ms
50,456 KB
testcase_05 AC 50 ms
49,936 KB
testcase_06 AC 50 ms
49,924 KB
testcase_07 AC 50 ms
50,252 KB
testcase_08 AC 51 ms
50,360 KB
testcase_09 AC 51 ms
50,436 KB
testcase_10 AC 51 ms
50,412 KB
testcase_11 AC 51 ms
50,312 KB
testcase_12 AC 51 ms
49,932 KB
testcase_13 AC 51 ms
50,284 KB
testcase_14 AC 50 ms
50,288 KB
testcase_15 AC 51 ms
49,892 KB
testcase_16 AC 51 ms
50,040 KB
testcase_17 AC 50 ms
50,300 KB
testcase_18 AC 52 ms
50,056 KB
testcase_19 AC 51 ms
50,128 KB
testcase_20 AC 50 ms
50,232 KB
testcase_21 AC 51 ms
49,936 KB
testcase_22 AC 51 ms
50,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] str = line.split(" ",0);
        int N = Integer.parseInt(str[0]);
        int P = Integer.parseInt(str[1]);
        int NP=N*P;
        if(P==NP)System.out.println("=");
        else{
        	System.out.println("!=");
        }
        
	}
}
0