結果

問題 No.337 P versus NP
ユーザー rapurasurapurasu
提出日時 2022-07-17 03:44:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 2,024 ms
コンパイル使用メモリ 72,264 KB
実行使用メモリ 56,784 KB
最終ジャッジ日時 2023-09-11 14:35:49
合計ジャッジ時間 5,938 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,944 KB
testcase_01 AC 117 ms
55,796 KB
testcase_02 AC 120 ms
56,052 KB
testcase_03 AC 118 ms
56,104 KB
testcase_04 AC 120 ms
55,916 KB
testcase_05 AC 119 ms
56,048 KB
testcase_06 AC 119 ms
56,488 KB
testcase_07 AC 118 ms
56,336 KB
testcase_08 AC 118 ms
56,020 KB
testcase_09 AC 119 ms
54,368 KB
testcase_10 AC 117 ms
56,128 KB
testcase_11 AC 119 ms
56,072 KB
testcase_12 AC 116 ms
55,976 KB
testcase_13 AC 117 ms
56,364 KB
testcase_14 AC 116 ms
56,044 KB
testcase_15 AC 118 ms
56,364 KB
testcase_16 AC 119 ms
56,308 KB
testcase_17 AC 117 ms
56,784 KB
testcase_18 AC 116 ms
55,860 KB
testcase_19 AC 118 ms
56,064 KB
testcase_20 AC 118 ms
56,044 KB
testcase_21 AC 117 ms
56,204 KB
testcase_22 AC 117 ms
56,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int P = scan.nextInt();
        if(P==N*P){
            System.out.println("=");
        }else{
            System.out.println("!=");
        }
    }
}
0