結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー AreTrashAreTrash
提出日時 2016-04-16 08:56:23
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 594 bytes
コンパイル時間 763 ms
コンパイル使用メモリ 110,532 KB
実行使用メモリ 34,788 KB
最終ジャッジ日時 2024-04-15 02:10:08
合計ジャッジ時間 2,760 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,404 KB
testcase_01 AC 54 ms
32,208 KB
testcase_02 AC 26 ms
24,648 KB
testcase_03 AC 28 ms
24,524 KB
testcase_04 AC 28 ms
26,944 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 27 ms
22,964 KB
testcase_08 AC 28 ms
26,688 KB
testcase_09 AC 28 ms
24,908 KB
testcase_10 AC 28 ms
25,008 KB
testcase_11 AC 28 ms
24,880 KB
testcase_12 AC 27 ms
25,032 KB
testcase_13 AC 27 ms
26,812 KB
testcase_14 AC 46 ms
26,828 KB
testcase_15 AC 38 ms
26,308 KB
testcase_16 AC 52 ms
29,784 KB
testcase_17 AC 37 ms
26,672 KB
testcase_18 AC 49 ms
25,912 KB
testcase_19 AC 43 ms
26,444 KB
testcase_20 AC 56 ms
32,236 KB
testcase_21 AC 32 ms
25,420 KB
testcase_22 AC 39 ms
26,512 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

namespace No79_1{
    public class Program{
        public static void Main(string[] args){
            Console.ReadLine();
            var input = Console.ReadLine().Split().ToList().ConvertAll(int.Parse);
            var count = new int[7];

            for(var i = 1; i <= 6; i++)
                foreach(var x in input)
                    count[x]++;

            for(var i = 6; i > 1; i--){
                if(count[i] == count.Max()){
                    Console.WriteLine(i);
                    break;
                }
            }
        }
    }
}
0