結果
| 問題 | 
                            No.337 P versus NP
                             | 
                    
| コンテスト | |
| ユーザー | 
                             megane_anko
                         | 
                    
| 提出日時 | 2021-02-14 00:05:39 | 
| 言語 | TypeScript  (5.7.2)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 403 bytes | 
| コンパイル時間 | 7,723 ms | 
| コンパイル使用メモリ | 228,728 KB | 
| 実行使用メモリ | 41,332 KB | 
| 最終ジャッジ日時 | 2024-12-31 16:24:48 | 
| 合計ジャッジ時間 | 9,979 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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 && P !== 0) {
    console.log("=");
} else if (P === 0) {
    console.log("=");
} else {
    console.log("!=");
}
            
            
            
        
            
megane_anko