結果
問題 |
No.337 P versus NP
|
ユーザー |
![]() |
提出日時 | 2021-02-13 23:56:52 |
言語 | TypeScript (5.7.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 348 bytes |
コンパイル時間 | 8,242 ms |
コンパイル使用メモリ | 228,732 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-12-31 16:24:47 |
合計ジャッジ時間 | 10,750 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 5 |
ソースコード
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("!="); }