結果

問題 No.975 ミスターマックスバリュ
ユーザー ws1560234564016ws1560234564016
提出日時 2020-03-02 19:48:01
言語 JavaScript
(node v21.7.1)
結果
WA  
実行時間 -
コード長 580 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 45,792 KB
最終ジャッジ日時 2024-04-21 03:10:09
合計ジャッジ時間 1,441 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 65 ms
39,296 KB
testcase_03 AC 65 ms
39,296 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 66 ms
39,168 KB
testcase_08 WA -
testcase_09 AC 63 ms
39,168 KB
testcase_10 AC 64 ms
39,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main (input) {
    input = input.split("\n");
    var ts1 = input[0].split(" ").map(inp => parseInt(inp, 10));
    var A = input[1].split(" ").map(inp => parseInt(inp, 10));
    var B = input[2].split(" ").map(inp => parseInt(inp, 10));
    var X = ts1[0];
    if (A.some(inp => inp == X) && B.some(inp => inp == X)) {
        console.log("MrMaxValu");
    }
    else if (A.some(inp => inp == X)) {
        console.log("MrMax");
    }
    else if (B.some(inp => inp == X)) {
        console.log("MaxValu");
    }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0