結果

問題 No.337 P versus NP
ユーザー megane_ankomegane_anko
提出日時 2021-02-14 00:26:20
言語 TypeScript
(5.4.3)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 7,545 ms
コンパイル使用メモリ 254,276 KB
実行使用メモリ 42,508 KB
最終ジャッジ日時 2023-09-28 09:48:46
合計ジャッジ時間 10,384 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
42,284 KB
testcase_01 AC 78 ms
42,288 KB
testcase_02 AC 80 ms
42,448 KB
testcase_03 AC 79 ms
42,248 KB
testcase_04 AC 79 ms
42,348 KB
testcase_05 AC 78 ms
42,308 KB
testcase_06 AC 79 ms
42,508 KB
testcase_07 AC 78 ms
42,304 KB
testcase_08 AC 77 ms
42,252 KB
testcase_09 AC 79 ms
42,380 KB
testcase_10 AC 77 ms
42,308 KB
testcase_11 AC 78 ms
42,288 KB
testcase_12 AC 78 ms
42,220 KB
testcase_13 AC 78 ms
42,256 KB
testcase_14 AC 80 ms
42,364 KB
testcase_15 AC 79 ms
42,316 KB
testcase_16 AC 80 ms
42,344 KB
testcase_17 AC 77 ms
42,404 KB
testcase_18 AC 79 ms
42,312 KB
testcase_19 AC 80 ms
42,308 KB
testcase_20 AC 79 ms
42,316 KB
testcase_21 AC 79 ms
42,256 KB
testcase_22 AC 78 ms
42,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import * as fs from 'fs';
const input = fs.readFileSync('/dev/stdin', 'utf8');

const arr = input.split(/[ \n]/);
let N = parseInt(arr[0]);
let P = parseInt(arr[1]);

if (N === 0 && P === 0) {
    console.log("=");
} else if ( N !== 0 && P === 0) {
    console.log("=");
} else if (N === 1 && P !== 0) {
    console.log("=");
} else if (N === 0 && P !== 0) {
    console.log("!=");
} else {
    console.log("!=");
}
0