Пример #1
0
        public int compareTo(Stool o)
        {
            int area     = o.Z * o.Y;
            int thisArea = this.Z * this.Y;

            return(area - thisArea);
        }
Пример #2
0
        static void Main()
        {
            int N     = int.Parse(Console.ReadLine());
            var stool = new Stool[N];

            for (int i = 0; i < N; i++)
            {
                var line = Console.ReadLine().Split(' ');
                stool[i] = new Stool(int.Parse(line[0]), int.Parse(line[1]), int.Parse(line[2]));
            }
        }