結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー はまやんはまやん
提出日時 2019-06-22 15:25:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 575 bytes
コンパイル時間 3,015 ms
コンパイル使用メモリ 106,368 KB
実行使用メモリ 25,728 KB
最終ジャッジ日時 2024-12-26 09:05:02
合計ジャッジ時間 4,884 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace proconCSharp
{
    class Program
    {
        static int GetInt()
        {
            return int.Parse(Console.ReadLine());
        }

        static int[] GetInts()
        {
            return Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        }

        static void Main()
        {
            var N = GetInt();
            var L = GetInts();

            var ans = L.GroupBy(x => x).Select(g => g.Count() * 10 + g.ElementAt(0)).Max() % 10;
            Console.WriteLine($"{ans}");
        }
    }
}
0