結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 15:21:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 502 bytes
コンパイル時間 4,407 ms
コンパイル使用メモリ 106,224 KB
実行使用メモリ 28,420 KB
最終ジャッジ日時 2023-09-25 12:30:18
合計ジャッジ時間 5,668 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
21,944 KB
testcase_01 AC 89 ms
28,420 KB
testcase_02 AC 60 ms
23,668 KB
testcase_03 AC 61 ms
23,720 KB
testcase_04 AC 61 ms
21,792 KB
testcase_05 AC 89 ms
26,332 KB
testcase_06 AC 60 ms
23,668 KB
testcase_07 AC 61 ms
21,612 KB
testcase_08 AC 60 ms
21,616 KB
testcase_09 AC 61 ms
21,632 KB
testcase_10 AC 61 ms
21,524 KB
testcase_11 AC 62 ms
21,688 KB
testcase_12 AC 61 ms
21,664 KB
testcase_13 AC 60 ms
21,740 KB
testcase_14 AC 80 ms
22,908 KB
testcase_15 AC 73 ms
22,448 KB
testcase_16 AC 83 ms
23,760 KB
testcase_17 AC 74 ms
24,648 KB
testcase_18 AC 83 ms
25,820 KB
testcase_19 AC 79 ms
24,828 KB
testcase_20 AC 88 ms
26,312 KB
testcase_21 AC 69 ms
22,028 KB
testcase_22 AC 74 ms
24,564 KB
testcase_23 AC 87 ms
28,236 KB
testcase_24 AC 88 ms
28,248 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

class Program
{
    public void Solve()
    {
        int N = int.Parse(Console.ReadLine());
        int[] W = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();

        int[] point = new int[7];

        for (int i = 0; i < N; i++)
        {
            point[W[i]]++;
        }

        Console.WriteLine(Array.LastIndexOf(point, point.Max()));
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0