結果
問題 |
No.975 ミスターマックスバリュ
|
ユーザー |
|
提出日時 | 2020-03-01 07:08:44 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 831 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 104,960 KB |
実行使用メモリ | 22,088 KB |
最終ジャッジ日時 | 2024-10-13 20:30:21 |
合計ジャッジ時間 | 1,702 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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<MaxValu.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; } } }