結果

問題 No.337 P versus NP
ユーザー cande398cande398
提出日時 2017-10-10 16:53:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 3,147 ms
コンパイル使用メモリ 71,332 KB
実行使用メモリ 56,112 KB
最終ジャッジ日時 2023-08-10 22:27:26
合計ジャッジ時間 7,373 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,916 KB
testcase_01 AC 121 ms
56,112 KB
testcase_02 AC 122 ms
55,776 KB
testcase_03 AC 120 ms
55,976 KB
testcase_04 AC 121 ms
55,708 KB
testcase_05 AC 122 ms
55,760 KB
testcase_06 AC 119 ms
55,704 KB
testcase_07 AC 121 ms
55,512 KB
testcase_08 AC 120 ms
55,512 KB
testcase_09 AC 120 ms
55,724 KB
testcase_10 AC 119 ms
55,820 KB
testcase_11 AC 118 ms
55,932 KB
testcase_12 AC 121 ms
55,836 KB
testcase_13 AC 122 ms
56,024 KB
testcase_14 AC 125 ms
55,616 KB
testcase_15 AC 119 ms
55,856 KB
testcase_16 AC 120 ms
55,760 KB
testcase_17 AC 118 ms
55,504 KB
testcase_18 AC 119 ms
56,080 KB
testcase_19 AC 119 ms
55,824 KB
testcase_20 AC 119 ms
55,756 KB
testcase_21 AC 119 ms
55,932 KB
testcase_22 AC 119 ms
55,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int P = sc.nextInt();
    System.out.println(P==N*P?"=":"!=");
  }
}
0