結果

問題 No.975 ミスターマックスバリュ
ユーザー curryudon08curryudon08
提出日時 2020-02-12 23:09:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 824 bytes
コンパイル時間 987 ms
コンパイル使用メモリ 114,104 KB
実行使用メモリ 32,236 KB
最終ジャッジ日時 2024-04-14 23:47:54
合計ジャッジ時間 1,988 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
26,892 KB
testcase_01 AC 29 ms
25,192 KB
testcase_02 AC 29 ms
25,184 KB
testcase_03 AC 30 ms
27,268 KB
testcase_04 AC 30 ms
25,192 KB
testcase_05 AC 34 ms
27,552 KB
testcase_06 AC 34 ms
27,644 KB
testcase_07 AC 35 ms
25,572 KB
testcase_08 AC 53 ms
32,236 KB
testcase_09 AC 29 ms
27,372 KB
testcase_10 AC 29 ms
25,232 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.Linq;
using System.Collections.Generic;

namespace _0975
{
    class Program
    {
        static void Main(string[] args)
        {
            var x = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray()[0];
            var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
            var b = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();

            var mrmax = a.Contains(x);
            var maxvalue = b.Contains(x);

            if(mrmax && maxvalue){
                Console.WriteLine("MrMaxValu");
            }else if(mrmax){
                Console.WriteLine("MrMax");
            }else if(maxvalue){
                Console.WriteLine("MaxValu");
            }else{
                Console.WriteLine("-1");
            }
        }
    }
}
0