結果

問題 No.975 ミスターマックスバリュ
ユーザー boya978boya978
提出日時 2020-03-01 06:55:03
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 829 bytes
コンパイル時間 1,141 ms
コンパイル使用メモリ 105,216 KB
実行使用メモリ 22,468 KB
最終ジャッジ日時 2024-04-21 22:06:08
合計ジャッジ時間 2,230 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
17,664 KB
testcase_01 AC 28 ms
17,792 KB
testcase_02 AC 28 ms
17,536 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 AC 31 ms
18,432 KB
testcase_06 AC 31 ms
18,432 KB
testcase_07 AC 33 ms
18,048 KB
testcase_08 AC 46 ms
22,468 KB
testcase_09 AC 26 ms
17,280 KB
testcase_10 AC 26 ms
17,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Hello{
    public static void Main(){
        
        var inpt = Console.ReadLine().Split();
        string want = inpt[0];
        int num=0;
        
        var MrMax = Console.ReadLine().Split();
        for(int i=0;i<MrMax.Length;i++){
            if(MrMax[i]==want)
                num++;
        }
        var MaxValu = Console.ReadLine().Split();
        for(int i=0;i<MrMax.Length;i++){
            if(MaxValu[i]==want)
                num+=2;
        }
        
        switch(num){
            case 0:
                Console.WriteLine(-1);break;
            case 1:
                Console.WriteLine("MrMax");break;
            case 2:
                Console.WriteLine("MaxValu");break;
            case 3:
                Console.WriteLine("MrMaxValu");break;
        }
        
    }
}
0