結果

問題 No.337 P versus NP
ユーザー megane_ankomegane_anko
提出日時 2021-02-13 23:56:52
言語 TypeScript
(5.4.3)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 8,861 ms
コンパイル使用メモリ 253,360 KB
実行使用メモリ 44,348 KB
最終ジャッジ日時 2023-09-28 09:29:53
合計ジャッジ時間 11,566 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
42,400 KB
testcase_01 WA -
testcase_02 AC 67 ms
42,304 KB
testcase_03 AC 64 ms
42,316 KB
testcase_04 WA -
testcase_05 AC 64 ms
42,252 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 66 ms
42,360 KB
testcase_09 AC 66 ms
42,316 KB
testcase_10 AC 65 ms
42,424 KB
testcase_11 AC 65 ms
42,276 KB
testcase_12 AC 68 ms
42,252 KB
testcase_13 WA -
testcase_14 AC 67 ms
42,256 KB
testcase_15 AC 66 ms
42,444 KB
testcase_16 AC 68 ms
42,284 KB
testcase_17 AC 66 ms
42,268 KB
testcase_18 AC 69 ms
42,248 KB
testcase_19 AC 66 ms
42,244 KB
testcase_20 AC 68 ms
42,340 KB
testcase_21 AC 65 ms
42,276 KB
testcase_22 AC 69 ms
42,356 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) {
    console.log("=");
} else {
    console.log("!=");
}
0