結果

問題 No.337 P versus NP
ユーザー KazukiAkitaKazukiAkita
提出日時 2017-10-26 17:31:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 417 bytes
コンパイル時間 2,792 ms
コンパイル使用メモリ 71,248 KB
実行使用メモリ 56,284 KB
最終ジャッジ日時 2023-08-14 02:05:55
合計ジャッジ時間 5,861 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
55,924 KB
testcase_01 AC 98 ms
55,880 KB
testcase_02 AC 100 ms
55,508 KB
testcase_03 AC 97 ms
56,092 KB
testcase_04 AC 96 ms
55,724 KB
testcase_05 AC 98 ms
55,848 KB
testcase_06 AC 98 ms
55,720 KB
testcase_07 AC 99 ms
55,816 KB
testcase_08 AC 99 ms
56,096 KB
testcase_09 AC 97 ms
55,944 KB
testcase_10 AC 95 ms
55,620 KB
testcase_11 AC 93 ms
56,144 KB
testcase_12 AC 98 ms
56,012 KB
testcase_13 AC 98 ms
55,480 KB
testcase_14 AC 94 ms
55,800 KB
testcase_15 AC 97 ms
55,700 KB
testcase_16 AC 95 ms
54,060 KB
testcase_17 AC 101 ms
56,284 KB
testcase_18 AC 99 ms
56,116 KB
testcase_19 AC 100 ms
56,108 KB
testcase_20 AC 100 ms
56,068 KB
testcase_21 AC 96 ms
56,056 KB
testcase_22 AC 98 ms
55,920 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(N == 1 || P == 0){
            System.out.println("=");

        }else{
            System.out.println("!=");
        }


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