結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー AreTrashAreTrash
提出日時 2016-04-16 08:57:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 595 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 102,560 KB
実行使用メモリ 28,984 KB
最終ジャッジ日時 2023-09-08 14:50:02
合計ジャッジ時間 4,964 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
23,948 KB
testcase_01 AC 93 ms
25,028 KB
testcase_02 AC 60 ms
21,652 KB
testcase_03 AC 60 ms
21,740 KB
testcase_04 AC 60 ms
21,668 KB
testcase_05 AC 93 ms
27,256 KB
testcase_06 AC 61 ms
21,872 KB
testcase_07 AC 61 ms
19,636 KB
testcase_08 AC 62 ms
23,764 KB
testcase_09 AC 62 ms
21,712 KB
testcase_10 AC 61 ms
21,572 KB
testcase_11 AC 61 ms
23,612 KB
testcase_12 AC 60 ms
21,592 KB
testcase_13 AC 61 ms
21,640 KB
testcase_14 AC 83 ms
25,468 KB
testcase_15 AC 75 ms
24,740 KB
testcase_16 AC 88 ms
24,464 KB
testcase_17 AC 74 ms
24,708 KB
testcase_18 AC 88 ms
24,428 KB
testcase_19 AC 83 ms
23,228 KB
testcase_20 AC 92 ms
27,108 KB
testcase_21 AC 68 ms
21,912 KB
testcase_22 AC 76 ms
22,744 KB
testcase_23 AC 92 ms
28,984 KB
testcase_24 AC 93 ms
27,020 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;

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