結果

問題 No.337 P versus NP
ユーザー megane_ankomegane_anko
提出日時 2021-02-14 00:05:39
言語 TypeScript
(5.4.3)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 8,419 ms
コンパイル使用メモリ 253,520 KB
実行使用メモリ 42,492 KB
最終ジャッジ日時 2023-09-28 09:30:26
合計ジャッジ時間 11,425 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
42,380 KB
testcase_01 WA -
testcase_02 AC 77 ms
42,268 KB
testcase_03 AC 78 ms
42,448 KB
testcase_04 WA -
testcase_05 AC 77 ms
42,244 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 76 ms
42,364 KB
testcase_09 AC 78 ms
42,396 KB
testcase_10 AC 78 ms
42,288 KB
testcase_11 AC 78 ms
42,272 KB
testcase_12 AC 78 ms
42,364 KB
testcase_13 WA -
testcase_14 AC 77 ms
42,224 KB
testcase_15 AC 77 ms
42,284 KB
testcase_16 AC 78 ms
42,384 KB
testcase_17 AC 77 ms
42,300 KB
testcase_18 AC 77 ms
42,272 KB
testcase_19 AC 77 ms
42,284 KB
testcase_20 AC 77 ms
42,292 KB
testcase_21 AC 78 ms
42,264 KB
testcase_22 AC 80 ms
42,312 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 (N === 0 && P !== 0) {
    console.log("!=");
} else if (N === 1 && P !== 0) {
    console.log("=");
} else if (P === 0) {
    console.log("=");
} else {
    console.log("!=");
}
0