using System;

using System.Collections.Generic;

using System.Linq;

using System.Reflection.Emit;

using System.Text;

using System.Threading.Tasks;


class plus

{

    public void Action()

    {

        int w = int.Parse(Console.ReadLine());

        for (int i = 0; i < w; i++)

        {

            string[] list = Console.ReadLine().Split(' ');

            int y = 0;

            float result = 0;

            for (int x = 1; x < list.Length; x++)

            {

                y += int.Parse(list[x]);

            }

            result = y / int.Parse(list[0]);

            float k = 0;

            for (int x = 1; x < list.Length; x++)

            {

                if (int.Parse(list[x])>result)

                {

                    k++;

                }

            }

            float j = (k / float.Parse(list[0]))*100;

            Console.WriteLine(string.Format("{0:0.###}", j) + "%");

        }

    }

}

class main


    static void Main(string[] args)

    {

        plus plus = new plus();

        plus.Action();

    }

}

ㅇ이거 왜 안될까??
콘솔에서는 잘만되는디