結果

問題 No.337 P versus NP
ユーザー Navi092ittNavi092itt
提出日時 2017-10-17 15:23:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 1,978 ms
コンパイル使用メモリ 70,900 KB
実行使用メモリ 58,088 KB
最終ジャッジ日時 2023-08-11 07:40:07
合計ジャッジ時間 5,828 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
54,140 KB
testcase_01 AC 122 ms
55,984 KB
testcase_02 AC 119 ms
53,956 KB
testcase_03 AC 121 ms
55,656 KB
testcase_04 AC 119 ms
56,312 KB
testcase_05 AC 121 ms
55,996 KB
testcase_06 AC 120 ms
55,692 KB
testcase_07 AC 121 ms
55,940 KB
testcase_08 AC 121 ms
55,744 KB
testcase_09 AC 119 ms
55,788 KB
testcase_10 AC 117 ms
55,952 KB
testcase_11 AC 115 ms
56,088 KB
testcase_12 AC 115 ms
56,000 KB
testcase_13 AC 115 ms
56,024 KB
testcase_14 AC 115 ms
55,936 KB
testcase_15 AC 118 ms
58,088 KB
testcase_16 AC 120 ms
55,744 KB
testcase_17 AC 121 ms
55,888 KB
testcase_18 AC 117 ms
56,080 KB
testcase_19 AC 118 ms
55,840 KB
testcase_20 AC 119 ms
56,196 KB
testcase_21 AC 119 ms
56,200 KB
testcase_22 AC 121 ms
56,036 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("!=");

        //ここまで
        sc.close();
    }
}
0