結果

問題 No.2153 何コーダーが何人?
ユーザー 👑 kakel-sankakel-san
提出日時 2023-09-05 21:40:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 782 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 66,164 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-09-05 21:40:52
合計ジャッジ時間 4,677 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
22,652 KB
testcase_01 AC 61 ms
22,668 KB
testcase_02 AC 63 ms
20,700 KB
testcase_03 AC 62 ms
20,608 KB
testcase_04 AC 63 ms
22,644 KB
testcase_05 AC 63 ms
22,776 KB
testcase_06 AC 63 ms
20,736 KB
testcase_07 AC 63 ms
20,712 KB
testcase_08 AC 63 ms
22,656 KB
testcase_09 AC 62 ms
20,536 KB
testcase_10 AC 64 ms
20,620 KB
testcase_11 AC 63 ms
20,604 KB
testcase_12 AC 62 ms
20,736 KB
testcase_13 AC 62 ms
20,788 KB
testcase_14 AC 62 ms
20,708 KB
testcase_15 AC 62 ms
20,740 KB
testcase_16 AC 62 ms
20,632 KB
testcase_17 AC 63 ms
22,840 KB
testcase_18 AC 64 ms
20,716 KB
testcase_19 AC 61 ms
22,684 KB
testcase_20 AC 61 ms
22,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var n = NN;
        var dic = new Dictionary<string, int>();
        for (var i = 0; i < n; ++i)
        {
            var s = ReadLine().Split();
            dic[s[0]] = int.Parse(s[1]);
        }
        var count = new int[8];
        foreach (var kv in dic) ++count[kv.Value];
        WriteLine(string.Join("\n", count));
    }
}
0