結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kmtrc130kmtrc130
提出日時 2017-04-28 15:41:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 91 ms / 5,000 ms
コード長 418 bytes
コンパイル時間 2,486 ms
コンパイル使用メモリ 104,512 KB
実行使用メモリ 28,332 KB
最終ジャッジ日時 2023-09-08 15:08:39
合計ジャッジ時間 5,574 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
21,992 KB
testcase_01 AC 91 ms
24,216 KB
testcase_02 AC 61 ms
21,756 KB
testcase_03 AC 61 ms
21,620 KB
testcase_04 AC 61 ms
21,652 KB
testcase_05 AC 89 ms
26,360 KB
testcase_06 AC 60 ms
21,636 KB
testcase_07 AC 59 ms
21,580 KB
testcase_08 AC 61 ms
21,596 KB
testcase_09 AC 61 ms
23,660 KB
testcase_10 AC 61 ms
23,836 KB
testcase_11 AC 60 ms
21,752 KB
testcase_12 AC 60 ms
21,612 KB
testcase_13 AC 59 ms
21,612 KB
testcase_14 AC 80 ms
22,916 KB
testcase_15 AC 74 ms
24,640 KB
testcase_16 AC 83 ms
23,760 KB
testcase_17 AC 74 ms
22,628 KB
testcase_18 AC 85 ms
25,792 KB
testcase_19 AC 79 ms
24,860 KB
testcase_20 AC 88 ms
28,332 KB
testcase_21 AC 69 ms
21,752 KB
testcase_22 AC 76 ms
24,692 KB
testcase_23 AC 87 ms
26,176 KB
testcase_24 AC 88 ms
26,260 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
{
    static void Main(string[] args)
    {
        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()));
    }
}
0