結果

問題 No.975 ミスターマックスバリュ
ユーザー boya978boya978
提出日時 2020-03-01 07:20:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 908 bytes
コンパイル時間 982 ms
コンパイル使用メモリ 113,888 KB
実行使用メモリ 22,472 KB
最終ジャッジ日時 2024-04-21 22:06:20
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
17,792 KB
testcase_01 AC 25 ms
17,664 KB
testcase_02 AC 25 ms
17,792 KB
testcase_03 AC 26 ms
17,408 KB
testcase_04 AC 25 ms
17,536 KB
testcase_05 AC 30 ms
18,304 KB
testcase_06 AC 30 ms
18,176 KB
testcase_07 AC 32 ms
18,304 KB
testcase_08 AC 42 ms
22,472 KB
testcase_09 AC 25 ms
17,152 KB
testcase_10 AC 25 ms
17,408 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+=1;break;
            }
                
        }
        var MaxValu = Console.ReadLine().Split();
        for(int i=0;i<MaxValu.Length;i++){
            if(MaxValu[i]==want){
                num+=2;break;
            }
                
        }
        
        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