結果

問題 No.337 P versus NP
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 23:02:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 347 bytes
コンパイル時間 3,165 ms
コンパイル使用メモリ 71,476 KB
実行使用メモリ 39,960 KB
最終ジャッジ日時 2023-09-05 08:54:50
合計ジャッジ時間 7,288 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
39,284 KB
testcase_01 AC 114 ms
39,656 KB
testcase_02 AC 112 ms
38,932 KB
testcase_03 AC 114 ms
39,136 KB
testcase_04 AC 115 ms
39,376 KB
testcase_05 AC 114 ms
39,452 KB
testcase_06 AC 117 ms
39,824 KB
testcase_07 AC 116 ms
39,364 KB
testcase_08 AC 115 ms
39,904 KB
testcase_09 AC 117 ms
39,140 KB
testcase_10 AC 118 ms
39,456 KB
testcase_11 AC 116 ms
39,960 KB
testcase_12 AC 118 ms
39,504 KB
testcase_13 AC 121 ms
39,428 KB
testcase_14 AC 117 ms
39,860 KB
testcase_15 AC 117 ms
39,444 KB
testcase_16 AC 114 ms
39,280 KB
testcase_17 AC 117 ms
39,172 KB
testcase_18 AC 117 ms
39,480 KB
testcase_19 AC 115 ms
39,488 KB
testcase_20 AC 115 ms
39,956 KB
testcase_21 AC 117 ms
39,564 KB
testcase_22 AC 119 ms
39,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con337 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int n = s.nextInt() , p = s.nextInt();
		s.close();
		if(p == n*p){
			System.out.println("=");
		}else{
			System.out.println("!=");
		}
	}

}
0