結果
| 問題 |
No.975 ミスターマックスバリュ
|
| コンテスト | |
| ユーザー |
baan_nasebanaru
|
| 提出日時 | 2020-03-11 01:21:26 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 814 bytes |
| コンパイル時間 | 48 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 41,720 KB |
| 最終ジャッジ日時 | 2024-10-13 01:33:18 |
| 合計ジャッジ時間 | 1,241 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 9 |
ソースコード
let lines = [];
reader.on("line", line => { lines.push(line);
});
reader.on("close", () => {
let wishProduct = lines[0].split(" ").map((value) => {
return value * 1;
});
let mrMax = lines[1].split(" ").map((value) => {
return value * 1;
});
let maxValue = lines[2].split(" ").map((value) => {
return value * 1;
});
let mrMaxResult = mrMax.some((mrMaxProductId) =>{
return mrMaxProductId === wishProduct[0]
});
let maxValueResult = maxValue.some((maxValueProductId) =>{
return maxValueProductId === wishProduct[0]
});
if ( mrMaxResult === true && maxValueResult === true) {
console.log('MrMaxValu')
} else if (mrMaxResult === true ){
console.log('MrMax')
} else if (maxValueResult === true ){
console.log('MaxValu')
} else {
console.log('-1')
}
});
baan_nasebanaru