Bootstrap

门禁系统(c#)

namespace ccfdemo
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int[] arr = new int[1001];
            Array.Fill(arr, 1);
            string num = Console.ReadLine();
            string line = Console.ReadLine();
            string[] strarr = line.Split();

            int[] numarr = Array.ConvertAll(strarr, int.Parse);
            foreach (int tmp in numarr)
            {
                Console.Write(arr[tmp] + " ");
                arr[tmp]++;
            }
        }
    }
}

;