結果
| 問題 |
No.337 P versus NP
|
| コンテスト | |
| ユーザー |
megane_anko
|
| 提出日時 | 2021-02-14 00:26:20 |
| 言語 | TypeScript (5.7.2) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| コード長 | 415 bytes |
| コンパイル時間 | 8,015 ms |
| コンパイル使用メモリ | 230,120 KB |
| 実行使用メモリ | 41,332 KB |
| 最終ジャッジ日時 | 2024-12-31 16:24:58 |
| 合計ジャッジ時間 | 10,119 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
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[1]);
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 (N === 0 && P !== 0) {
console.log("!=");
} else {
console.log("!=");
}
megane_anko