結果

問題 No.975 ミスターマックスバリュ
ユーザー keymoonkeymoon
提出日時 2020-01-31 21:21:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 827 bytes
コンパイル時間 866 ms
コンパイル使用メモリ 108,160 KB
実行使用メモリ 30,488 KB
最終ジャッジ日時 2023-10-17 08:31:13
合計ジャッジ時間 1,825 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,388 KB
testcase_01 AC 28 ms
25,388 KB
testcase_02 AC 29 ms
25,388 KB
testcase_03 AC 29 ms
25,388 KB
testcase_04 AC 29 ms
25,388 KB
testcase_05 AC 34 ms
25,772 KB
testcase_06 AC 34 ms
25,764 KB
testcase_07 AC 34 ms
25,772 KB
testcase_08 AC 53 ms
30,488 KB
testcase_09 AC 29 ms
25,388 KB
testcase_10 AC 28 ms
25,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

public static class P
{
    public static void Main()
    {
        var xnm = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var x = xnm[0];
        var n = xnm[1];
        var m = xnm[2];
        var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var b = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var existsInA = a.Contains(x);
        var existsInB = b.Contains(x);

        Console.WriteLine(existsInA && existsInB ? "MrMaxValu" : existsInA ? "MrMax" : existsInB ? "MaxValu" : "-1");
    }
}
0