示例#1
0
        static void Main()
        {
            string[] minionData = Console.ReadLine().Split();
            Minion   minion     = new Minion()
            {
                Name     = minionData[1],
                Age      = int.Parse(minionData[2]),
                TownName = minionData[3],
            };

            string[] villainData = Console.ReadLine().Split();
            Villain  villain     = new Villain()
            {
                Name = villainData[1],
            };

            AddMinionForVillain(minion, villain);
        }