結果
問題 |
No.975 ミスターマックスバリュ
|
ユーザー |
|
提出日時 | 2020-02-12 23:09:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 824 bytes |
コンパイル時間 | 762 ms |
コンパイル使用メモリ | 114,108 KB |
実行使用メモリ | 28,532 KB |
最終ジャッジ日時 | 2024-10-04 05:40:02 |
合計ジャッジ時間 | 1,655 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; namespace _0975 { class Program { static void Main(string[] args) { var x = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray()[0]; var a = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var b = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); var mrmax = a.Contains(x); var maxvalue = b.Contains(x); if(mrmax && maxvalue){ Console.WriteLine("MrMaxValu"); }else if(mrmax){ Console.WriteLine("MrMax"); }else if(maxvalue){ Console.WriteLine("MaxValu"); }else{ Console.WriteLine("-1"); } } } }