結果

問題 No.337 P versus NP
ユーザー atkrymatkrym
提出日時 2016-10-19 14:05:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 361 bytes
コンパイル時間 3,800 ms
コンパイル使用メモリ 71,056 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-08-14 16:28:32
合計ジャッジ時間 5,930 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
55,492 KB
testcase_01 AC 107 ms
55,720 KB
testcase_02 AC 109 ms
55,980 KB
testcase_03 AC 103 ms
56,132 KB
testcase_04 AC 101 ms
55,632 KB
testcase_05 AC 101 ms
55,456 KB
testcase_06 AC 104 ms
55,884 KB
testcase_07 AC 102 ms
55,576 KB
testcase_08 AC 102 ms
56,052 KB
testcase_09 AC 102 ms
55,412 KB
testcase_10 AC 103 ms
55,664 KB
testcase_11 AC 102 ms
55,668 KB
testcase_12 AC 102 ms
55,504 KB
testcase_13 AC 103 ms
56,008 KB
testcase_14 AC 103 ms
55,976 KB
testcase_15 AC 106 ms
55,212 KB
testcase_16 AC 103 ms
55,584 KB
testcase_17 AC 105 ms
55,200 KB
testcase_18 AC 103 ms
56,004 KB
testcase_19 AC 108 ms
55,788 KB
testcase_20 AC 101 ms
56,304 KB
testcase_21 AC 104 ms
56,020 KB
testcase_22 AC 104 ms
55,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        int n = sc.nextInt();
        int p = sc.nextInt();
        if (n == 1 || p == 0) {
            System.out.println("=");
        } else {
            System.out.println("!=");
        }
    }
}
0