結果

問題 No.337 P versus NP
ユーザー megane_ankomegane_anko
提出日時 2021-02-14 00:10:44
言語 TypeScript
(5.4.3)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 6,846 ms
コンパイル使用メモリ 254,276 KB
実行使用メモリ 44,528 KB
最終ジャッジ日時 2023-09-28 09:36:47
合計ジャッジ時間 9,791 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
42,312 KB
testcase_01 WA -
testcase_02 AC 77 ms
42,380 KB
testcase_03 AC 79 ms
42,456 KB
testcase_04 WA -
testcase_05 AC 77 ms
42,264 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 78 ms
42,236 KB
testcase_09 AC 77 ms
42,360 KB
testcase_10 AC 77 ms
42,304 KB
testcase_11 AC 77 ms
42,296 KB
testcase_12 AC 77 ms
42,356 KB
testcase_13 WA -
testcase_14 AC 77 ms
42,272 KB
testcase_15 AC 77 ms
42,296 KB
testcase_16 AC 78 ms
42,268 KB
testcase_17 AC 77 ms
42,356 KB
testcase_18 AC 77 ms
42,316 KB
testcase_19 AC 77 ms
42,448 KB
testcase_20 AC 77 ms
42,268 KB
testcase_21 AC 78 ms
42,276 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[0]);

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