結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー 👑 はまやんはまやんはまやんはまやん
提出日時 2019-06-22 15:36:03
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 94 ms / 5,000 ms
コード長 570 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 67,872 KB
実行使用メモリ 31,420 KB
最終ジャッジ日時 2023-08-27 02:53:19
合計ジャッジ時間 3,938 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
22,288 KB
testcase_01 AC 92 ms
27,776 KB
testcase_02 AC 62 ms
21,972 KB
testcase_03 AC 62 ms
19,956 KB
testcase_04 AC 61 ms
22,044 KB
testcase_05 AC 93 ms
29,828 KB
testcase_06 AC 65 ms
22,092 KB
testcase_07 AC 63 ms
20,172 KB
testcase_08 AC 63 ms
21,956 KB
testcase_09 AC 64 ms
19,936 KB
testcase_10 AC 63 ms
24,192 KB
testcase_11 AC 64 ms
22,004 KB
testcase_12 AC 60 ms
22,148 KB
testcase_13 AC 60 ms
24,032 KB
testcase_14 AC 81 ms
26,160 KB
testcase_15 AC 75 ms
23,300 KB
testcase_16 AC 88 ms
27,032 KB
testcase_17 AC 78 ms
23,148 KB
testcase_18 AC 86 ms
27,172 KB
testcase_19 AC 80 ms
26,172 KB
testcase_20 AC 92 ms
30,348 KB
testcase_21 AC 70 ms
22,300 KB
testcase_22 AC 78 ms
23,292 KB
testcase_23 AC 94 ms
31,420 KB
testcase_24 AC 94 ms
25,416 KB
権限があれば一括ダウンロードができます

ソースコード

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.First()).Max() % 10;
            Console.WriteLine($"{ans}");
        }
    }
}
0