結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー mrc1031mrc1031
提出日時 2016-10-11 13:32:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 2,263 ms
コンパイル使用メモリ 106,512 KB
実行使用メモリ 28,016 KB
最終ジャッジ日時 2023-09-08 15:00:31
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,992 KB
testcase_01 AC 88 ms
27,888 KB
testcase_02 AC 60 ms
21,528 KB
testcase_03 AC 61 ms
23,632 KB
testcase_04 AC 60 ms
21,640 KB
testcase_05 AC 89 ms
25,936 KB
testcase_06 AC 59 ms
21,612 KB
testcase_07 AC 60 ms
23,596 KB
testcase_08 AC 60 ms
19,580 KB
testcase_09 AC 60 ms
21,628 KB
testcase_10 AC 61 ms
21,760 KB
testcase_11 AC 60 ms
21,648 KB
testcase_12 AC 59 ms
19,512 KB
testcase_13 AC 60 ms
23,692 KB
testcase_14 AC 80 ms
22,712 KB
testcase_15 AC 72 ms
24,464 KB
testcase_16 AC 82 ms
23,592 KB
testcase_17 AC 74 ms
26,540 KB
testcase_18 AC 83 ms
25,468 KB
testcase_19 AC 78 ms
22,724 KB
testcase_20 AC 89 ms
28,016 KB
testcase_21 AC 68 ms
24,036 KB
testcase_22 AC 74 ms
22,564 KB
testcase_23 AC 87 ms
25,824 KB
testcase_24 AC 89 ms
25,800 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)
    {
        // No.79 過小評価ダメ・ゼッタイ

        int N = int.Parse(Console.ReadLine());
        string l = Console.ReadLine();
        int[] level = new int[7];

        foreach (int L in l.Split(' ').Select(s => int.Parse(s)))
            level[L]++;

        Console.WriteLine(Array.LastIndexOf(level, level.Max()));
    }
}
0