35942023-03-01 09:31:41BenedekInverziócsharpWrong answer 2/50600ms60236 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] szamok = Console.ReadLine().Split().Select(int.Parse).ToArray();
            SortedSet<int> ossz = new SortedSet<int>();
            for (int i = 0; i < n; i++)
            {
                ossz.Add(szamok[i]);
            }

                Console.Write(ossz.Min + " " + ossz.Max);
            


            Console.ReadKey();
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base2/50
1Accepted0/035ms23920 KiB
2Wrong answer0/093ms36016 KiB
3Wrong answer0/135ms24700 KiB
4Accepted2/241ms25808 KiB
5Wrong answer0/741ms26308 KiB
6Wrong answer0/294ms37140 KiB
7Time limit exceeded0/2574ms56904 KiB
8Time limit exceeded0/2579ms53556 KiB
9Time limit exceeded0/2600ms53960 KiB
10Time limit exceeded0/2586ms58140 KiB
11Time limit exceeded0/2578ms56036 KiB
12Time limit exceeded0/2580ms57776 KiB
13Time limit exceeded0/2597ms59388 KiB
14Time limit exceeded0/2600ms60132 KiB
15Time limit exceeded0/2572ms59096 KiB
16Time limit exceeded0/2593ms59904 KiB
17Time limit exceeded0/2566ms55684 KiB
18Time limit exceeded0/2573ms59808 KiB
19Time limit exceeded0/3580ms59780 KiB
20Time limit exceeded0/3579ms59596 KiB
21Time limit exceeded0/2572ms60132 KiB
22Time limit exceeded0/2570ms56116 KiB
23Time limit exceeded0/2582ms59636 KiB
24Time limit exceeded0/2591ms60236 KiB