結果

問題 No.337 P versus NP
ユーザー marumaru
提出日時 2016-03-19 23:07:36
言語 Java19
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 4,334 ms
コンパイル使用メモリ 72,188 KB
実行使用メモリ 56,320 KB
最終ジャッジ日時 2023-07-24 14:07:17
合計ジャッジ時間 8,279 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,308 KB
testcase_01 AC 116 ms
56,320 KB
testcase_02 AC 115 ms
55,656 KB
testcase_03 AC 116 ms
55,564 KB
testcase_04 AC 116 ms
56,100 KB
testcase_05 AC 116 ms
55,744 KB
testcase_06 AC 114 ms
56,084 KB
testcase_07 AC 113 ms
55,960 KB
testcase_08 AC 115 ms
55,760 KB
testcase_09 AC 115 ms
56,032 KB
testcase_10 AC 114 ms
55,744 KB
testcase_11 AC 117 ms
56,200 KB
testcase_12 AC 124 ms
55,632 KB
testcase_13 AC 116 ms
55,480 KB
testcase_14 AC 117 ms
55,832 KB
testcase_15 AC 117 ms
55,752 KB
testcase_16 AC 114 ms
56,148 KB
testcase_17 AC 116 ms
55,456 KB
testcase_18 AC 119 ms
55,912 KB
testcase_19 AC 115 ms
56,012 KB
testcase_20 AC 114 ms
56,276 KB
testcase_21 AC 114 ms
55,416 KB
testcase_22 AC 115 ms
56,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_337 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		String np = scanner.nextLine();
		String[] np_array = np.split(" ");
		
		int n = Integer.parseInt(np_array[0]);
		int p = Integer.parseInt(np_array[1]);
		
		if (p == n * p) {
			System.out.println("=");
		} else {
			System.out.println("!=");
		}
	}
}
	
0