結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー funakoshifunakoshi
提出日時 2019-06-24 09:44:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 1,245 bytes
コンパイル時間 1,972 ms
コンパイル使用メモリ 103,688 KB
実行使用メモリ 26,692 KB
最終ジャッジ日時 2023-08-30 07:52:09
合計ジャッジ時間 5,215 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
18,744 KB
testcase_01 AC 81 ms
24,636 KB
testcase_02 AC 54 ms
18,532 KB
testcase_03 AC 53 ms
20,584 KB
testcase_04 AC 53 ms
18,508 KB
testcase_05 AC 80 ms
26,692 KB
testcase_06 AC 53 ms
22,544 KB
testcase_07 AC 53 ms
22,588 KB
testcase_08 AC 54 ms
20,592 KB
testcase_09 AC 53 ms
20,588 KB
testcase_10 AC 53 ms
20,588 KB
testcase_11 AC 53 ms
20,428 KB
testcase_12 AC 53 ms
22,512 KB
testcase_13 AC 54 ms
22,500 KB
testcase_14 AC 74 ms
21,656 KB
testcase_15 AC 66 ms
21,152 KB
testcase_16 AC 77 ms
22,312 KB
testcase_17 AC 66 ms
23,336 KB
testcase_18 AC 76 ms
22,324 KB
testcase_19 AC 72 ms
21,512 KB
testcase_20 AC 82 ms
24,724 KB
testcase_21 AC 62 ms
22,760 KB
testcase_22 AC 71 ms
23,416 KB
testcase_23 AC 83 ms
24,632 KB
testcase_24 AC 81 ms
24,640 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 yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string aaaaaaa = Console.ReadLine();
            string input = Console.ReadLine();
            string[] num = new string[6];
            int[] cnt = new int[6];
            string[] level = input.Split(' ');
            for(int i=1;i<=num.Length;i++)
            {
                num[i - 1] = i.ToString();
                cnt[i - 1] = 0;
            }
            for(int i=0;i<level.Length;i++)
            {
                string temp = level[i].Substring(0, 1);
                for(int j=0;j<num.Length;j++)
                {
                    if(temp==num[j])
                    {
                        cnt[j]++;
                    }
                }
            }
            string ans = "";
            int max = 0;
            for(int i=0;i<cnt.Length;i++)
            {


                if (max <= cnt[i])
                {
                    max = cnt[i];
                    ans = num[i];
                }
                
            }
            Console.WriteLine(ans);
        }
    }
}
0