結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー NoNo
提出日時 2015-04-20 20:25:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 699 bytes
コンパイル時間 2,112 ms
コンパイル使用メモリ 102,116 KB
実行使用メモリ 28,204 KB
最終ジャッジ日時 2023-09-08 14:25:33
合計ジャッジ時間 5,245 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
21,984 KB
testcase_01 AC 90 ms
26,220 KB
testcase_02 AC 62 ms
21,588 KB
testcase_03 AC 61 ms
21,724 KB
testcase_04 AC 62 ms
21,544 KB
testcase_05 AC 93 ms
24,324 KB
testcase_06 AC 61 ms
21,784 KB
testcase_07 AC 62 ms
23,700 KB
testcase_08 AC 62 ms
23,772 KB
testcase_09 AC 62 ms
21,684 KB
testcase_10 AC 61 ms
21,600 KB
testcase_11 AC 61 ms
23,704 KB
testcase_12 AC 64 ms
21,748 KB
testcase_13 AC 61 ms
19,656 KB
testcase_14 AC 82 ms
22,932 KB
testcase_15 AC 75 ms
24,612 KB
testcase_16 AC 84 ms
23,836 KB
testcase_17 AC 74 ms
20,380 KB
testcase_18 AC 85 ms
23,712 KB
testcase_19 AC 80 ms
22,932 KB
testcase_20 AC 92 ms
26,300 KB
testcase_21 AC 70 ms
21,892 KB
testcase_22 AC 76 ms
22,632 KB
testcase_23 AC 91 ms
28,204 KB
testcase_24 AC 90 ms
24,232 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ForYukicoder
{
    class Program
    {
        //過小評価ダメ・ゼッタイ
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int[] L = Console.ReadLine().Split().Select(int.Parse).ToArray();
            int[] level = new int[6] { 0, 0, 0, 0, 0, 0 };

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

            int max = level.Max();
            int ans = Array.LastIndexOf(level, max) + 1;

            Console.WriteLine(ans);
        }
    }
}
0