結果

問題 No.337 P versus NP
ユーザー キョウチクキョウチク
提出日時 2022-06-01 13:25:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 485 bytes
コンパイル時間 1,891 ms
コンパイル使用メモリ 75,408 KB
実行使用メモリ 57,564 KB
最終ジャッジ日時 2023-10-21 00:48:07
合計ジャッジ時間 5,541 ms
ジャッジサーバーID
(参考情報)
judge13 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
57,372 KB
testcase_01 AC 117 ms
57,564 KB
testcase_02 AC 117 ms
57,564 KB
testcase_03 AC 105 ms
56,240 KB
testcase_04 AC 107 ms
53,936 KB
testcase_05 AC 106 ms
56,196 KB
testcase_06 AC 111 ms
56,196 KB
testcase_07 AC 115 ms
57,112 KB
testcase_08 AC 118 ms
57,400 KB
testcase_09 AC 120 ms
57,328 KB
testcase_10 AC 121 ms
57,516 KB
testcase_11 AC 118 ms
57,528 KB
testcase_12 AC 118 ms
57,184 KB
testcase_13 AC 119 ms
57,328 KB
testcase_14 AC 117 ms
57,416 KB
testcase_15 AC 107 ms
56,008 KB
testcase_16 AC 109 ms
56,220 KB
testcase_17 AC 119 ms
57,420 KB
testcase_18 AC 110 ms
56,240 KB
testcase_19 AC 118 ms
57,404 KB
testcase_20 AC 116 ms
57,440 KB
testcase_21 AC 111 ms
56,856 KB
testcase_22 AC 114 ms
56,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc=new Scanner(System.in);
        String[] line;
        String result="";
        line=sc.nextLine().split(" ");
        int n=Integer.parseInt(line[0]);
        int p=Integer.parseInt(line[1]);
        if(n==1||p==0){
            result="=";
        }else{
            result="!=";
        }
        System.out.println(result);
    }
}
0