93232024-02-20 13:42:26Leventusz09Vetélkedő (75 pont)csharpTime limit exceeded 5/75580ms44616 KiB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vetélkedő{
    class Program{
        static void Main(){
            int N = int.Parse(Console.ReadLine());
            string[] A = new string[N];
            
            for(int i=0, j; i<N; i++){
                string in1 = Console.ReadLine();
                List<char> temp = new List<char>();
                for(j=0; j<in1.Length; j++) {
                    temp.Add(in1[j]);
                }
                temp.Sort();
                foreach (char k in temp) A[i] += k;
            }
            string o1 = "";
            bool tmp;
            for(int i=0, j; i<N; i++){
                tmp = false;
                o1 = A[i];
                for(j = i; j<N; j++){
                    if (i!=j && A[i] == A[j]) tmp = true;
                }
                if (!tmp) break;
            }
            
            Console.WriteLine(o1);
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base5/75
1Accepted0/030ms20292 KiB
2Time limit exceeded0/0578ms40084 KiB
3Accepted5/528ms22236 KiB
4Wrong answer0/528ms22624 KiB
5Wrong answer0/528ms23328 KiB
6Wrong answer0/528ms23440 KiB
7Wrong answer0/535ms25652 KiB
8Wrong answer0/535ms26148 KiB
9Wrong answer0/537ms26784 KiB
10Wrong answer0/5310ms36884 KiB
11Wrong answer0/5365ms38724 KiB
12Wrong answer0/5432ms39712 KiB
13Wrong answer0/5490ms42052 KiB
14Time limit exceeded0/5523ms44076 KiB
15Time limit exceeded0/5550ms20724 KiB
16Time limit exceeded0/5580ms20680 KiB
17Time limit exceeded0/5540ms44616 KiB