結果

問題 No.337 P versus NP
ユーザー 水野嶺水野嶺
提出日時 2020-05-28 15:38:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 3,069 ms
コンパイル使用メモリ 71,952 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-08-03 06:33:59
合計ジャッジ時間 5,747 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
53,500 KB
testcase_01 AC 122 ms
55,344 KB
testcase_02 AC 123 ms
55,980 KB
testcase_03 AC 120 ms
55,612 KB
testcase_04 AC 122 ms
55,648 KB
testcase_05 AC 122 ms
55,548 KB
testcase_06 AC 121 ms
55,728 KB
testcase_07 AC 121 ms
55,844 KB
testcase_08 AC 122 ms
55,588 KB
testcase_09 AC 121 ms
55,852 KB
testcase_10 AC 121 ms
56,284 KB
testcase_11 AC 122 ms
55,760 KB
testcase_12 AC 121 ms
55,532 KB
testcase_13 AC 122 ms
55,592 KB
testcase_14 AC 120 ms
55,768 KB
testcase_15 AC 120 ms
55,584 KB
testcase_16 AC 122 ms
55,544 KB
testcase_17 AC 121 ms
55,908 KB
testcase_18 AC 122 ms
55,628 KB
testcase_19 AC 124 ms
55,728 KB
testcase_20 AC 124 ms
56,516 KB
testcase_21 AC 124 ms
55,652 KB
testcase_22 AC 128 ms
55,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) 
	{
		// 入力値の読み込み
		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