結果

問題 No.975 ミスターマックスバリュ
ユーザー ngtkanangtkana
提出日時 2020-01-31 22:14:25
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 957 bytes
コンパイル時間 3,534 ms
コンパイル使用メモリ 108,744 KB
実行使用メモリ 27,752 KB
最終ジャッジ日時 2023-10-17 10:06:56
合計ジャッジ時間 3,571 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
25,216 KB
testcase_01 AC 29 ms
25,216 KB
testcase_02 AC 29 ms
25,212 KB
testcase_03 AC 29 ms
25,212 KB
testcase_04 AC 29 ms
25,216 KB
testcase_05 AC 33 ms
25,720 KB
testcase_06 AC 33 ms
25,712 KB
testcase_07 AC 34 ms
25,716 KB
testcase_08 AC 52 ms
27,752 KB
testcase_09 AC 29 ms
25,212 KB
testcase_10 AC 29 ms
25,212 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;

/*

🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔


当問題は、ミスターマックス、マックスバリュともに一切関係ございません。

🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔 🤔

*/

public static class Program{
    public static void Main() {
        int[]XNM=Console.ReadLine().Split().Select(int.Parse).ToArray();
        int X=XNM[0];
        int N=XNM[1];
        int M=XNM[2];
        bool MrMax=false;
        bool MaxValu=false;
        foreach(int x in Console.ReadLine().Split().Select(int.Parse)){
            if(x==X)MrMax=true;
        }
        foreach(int x in Console.ReadLine().Split().Select(int.Parse)){
            if(x==X)MaxValu=true;
        }
        if(MrMax)Console.Write("Mr");
        if(MrMax||MaxValu)Console.Write("Max");
        else Console.Write(-1);
        if(MaxValu)Console.Write("Valu");
        Console.Write('\n');
    }
}
0