結果

問題 No.337 P versus NP
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-13 22:04:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 273 bytes
コンパイル時間 2,119 ms
コンパイル使用メモリ 71,356 KB
実行使用メモリ 56,236 KB
最終ジャッジ日時 2023-08-11 00:25:07
合計ジャッジ時間 5,896 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,924 KB
testcase_01 AC 117 ms
55,520 KB
testcase_02 AC 116 ms
55,976 KB
testcase_03 AC 121 ms
56,016 KB
testcase_04 AC 120 ms
55,908 KB
testcase_05 AC 120 ms
53,964 KB
testcase_06 AC 116 ms
55,316 KB
testcase_07 AC 117 ms
55,724 KB
testcase_08 AC 116 ms
55,524 KB
testcase_09 AC 117 ms
55,848 KB
testcase_10 AC 115 ms
56,236 KB
testcase_11 AC 117 ms
55,524 KB
testcase_12 AC 119 ms
53,496 KB
testcase_13 AC 115 ms
55,892 KB
testcase_14 AC 119 ms
56,136 KB
testcase_15 AC 117 ms
55,800 KB
testcase_16 AC 116 ms
55,428 KB
testcase_17 AC 117 ms
55,904 KB
testcase_18 AC 121 ms
55,704 KB
testcase_19 AC 120 ms
55,860 KB
testcase_20 AC 121 ms
55,764 KB
testcase_21 AC 118 ms
55,660 KB
testcase_22 AC 122 ms
55,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public 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