結果

問題 No.337 P versus NP
ユーザー キョウチクキョウチク
提出日時 2022-05-14 23:42:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 3,344 ms
コンパイル使用メモリ 71,824 KB
実行使用メモリ 56,180 KB
最終ジャッジ日時 2023-09-30 17:10:31
合計ジャッジ時間 7,795 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,928 KB
testcase_01 AC 123 ms
55,424 KB
testcase_02 AC 124 ms
55,796 KB
testcase_03 AC 124 ms
55,636 KB
testcase_04 AC 124 ms
55,612 KB
testcase_05 AC 124 ms
55,436 KB
testcase_06 AC 123 ms
55,832 KB
testcase_07 AC 123 ms
55,676 KB
testcase_08 AC 124 ms
55,640 KB
testcase_09 AC 124 ms
55,612 KB
testcase_10 AC 123 ms
55,936 KB
testcase_11 AC 124 ms
55,740 KB
testcase_12 AC 123 ms
56,008 KB
testcase_13 AC 122 ms
55,696 KB
testcase_14 AC 125 ms
55,696 KB
testcase_15 AC 127 ms
55,772 KB
testcase_16 AC 123 ms
55,960 KB
testcase_17 AC 124 ms
55,620 KB
testcase_18 AC 125 ms
56,180 KB
testcase_19 AC 124 ms
55,648 KB
testcase_20 AC 125 ms
55,324 KB
testcase_21 AC 125 ms
55,384 KB
testcase_22 AC 125 ms
55,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Test10 {
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String[] line;
    line=sc.nextLine().split(" ");
    int n=Integer.parseInt(line[0]);
    int p=Integer.parseInt(line[1]);
    if(n==1){
      System.out.println("=");
    }else if(p==0){
      System.out.println("=");
    }else{
      System.out.println("!=");
    }
  }
}
0