結果
問題 | No.975 ミスターマックスバリュ |
ユーザー |
![]() |
提出日時 | 2020-01-31 22:14:25 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 54 ms / 2,000 ms |
コード長 | 957 bytes |
コンパイル時間 | 903 ms |
コンパイル使用メモリ | 112,824 KB |
実行使用メモリ | 27,360 KB |
最終ジャッジ日時 | 2024-09-17 08:33:22 |
合計ジャッジ時間 | 1,910 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; 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'); } }