結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー しらゆきしらゆき
提出日時 2015-11-19 15:54:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 92 ms / 5,000 ms
コード長 406 bytes
コンパイル時間 2,561 ms
コンパイル使用メモリ 101,924 KB
実行使用メモリ 28,268 KB
最終ジャッジ日時 2023-09-08 14:39:49
合計ジャッジ時間 5,289 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
19,808 KB
testcase_01 AC 92 ms
26,284 KB
testcase_02 AC 62 ms
21,712 KB
testcase_03 AC 62 ms
23,564 KB
testcase_04 AC 62 ms
21,664 KB
testcase_05 AC 91 ms
28,268 KB
testcase_06 AC 62 ms
21,652 KB
testcase_07 AC 61 ms
23,792 KB
testcase_08 AC 60 ms
21,724 KB
testcase_09 AC 60 ms
21,720 KB
testcase_10 AC 59 ms
19,600 KB
testcase_11 AC 60 ms
21,592 KB
testcase_12 AC 60 ms
21,600 KB
testcase_13 AC 61 ms
21,644 KB
testcase_14 AC 79 ms
22,896 KB
testcase_15 AC 72 ms
22,424 KB
testcase_16 AC 83 ms
25,728 KB
testcase_17 AC 71 ms
22,500 KB
testcase_18 AC 83 ms
23,788 KB
testcase_19 AC 79 ms
22,792 KB
testcase_20 AC 92 ms
26,296 KB
testcase_21 AC 69 ms
21,756 KB
testcase_22 AC 76 ms
22,656 KB
testcase_23 AC 89 ms
26,252 KB
testcase_24 AC 91 ms
28,236 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()
    {
        int n = int.Parse(Console.ReadLine());
        int[] l = Console.ReadLine().Split().Select(int.Parse).ToArray();

        int[] level = { 0, 0, 0, 0, 0, 0 };

        for(int i=0;i< n; i++)
        {
            level[l[i] - 1]++;
        }

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