結果
問題 |
No.975 ミスターマックスバリュ
|
ユーザー |
![]() |
提出日時 | 2020-02-12 07:06:52 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 698 bytes |
コンパイル時間 | 2,712 ms |
コンパイル使用メモリ | 109,772 KB |
実行使用メモリ | 30,108 KB |
最終ジャッジ日時 | 2024-10-02 08:43:47 |
合計ジャッジ時間 | 1,893 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.Linq; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var x = int.Parse(line[0]); line = Console.ReadLine().Trim().Split(' '); var a = Array.ConvertAll(line, int.Parse); line = Console.ReadLine().Trim().Split(' '); var b = Array.ConvertAll(line, int.Parse); Console.WriteLine(getAns(x, a, b)); } static string getAns(int x, int[] a, int[] b) { var aa = a.Contains(x); var bb = b.Contains(x); if (aa && bb) return "MrMaxValu"; if (aa) return "MrMax"; if (bb) return "MaxValu"; return "-1"; } }