93312024-02-20 14:43:29Leventusz09Vetélkedő (75 pont)csharpAccepted 75/7572ms32364 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(){
            /*
            //V1
            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;
            Array.Sort(A);
            for(int i=0; i<N; i+=2){
                o1 = A[i];
                if (i == N - 1) break;
                if (A[i] != A[i + 1]) break;
            }
            
            Console.WriteLine(o1);*/
            /*
            //V2
            int N = int.Parse(Console.ReadLine());
            string temp = "";
            Dictionary<string, int> dic = new Dictionary<string, int>();
            for(int i=0; i<N; i++) {
                char[] x = Console.ReadLine().OrderBy(a => a).ToArray();
                temp = "";
                foreach (char y in x) temp += y;
                if(dic.Keys.Contains(temp)) dic[temp]++;
                else dic.Add(temp, 1);
            }
            foreach (string j in dic.Keys) if (dic[j] == 1){
                Console.WriteLine(j);
                break;
            }

            int v1 = 'z';
            Console.WriteLine((int)v1);
            */

            int N = int.Parse(Console.ReadLine());
            int[] chs = new int[123];
            for(int i=0; i<N; i++){
                foreach (char j in Console.ReadLine()) chs[j]++;
            }
            string o1 = "";
            for(int i=0; i<123; i++){
                if (chs[i]%2 == 1) o1 += (char)i;
            }
            Console.WriteLine(o1);
        }
    }
}
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/028ms20268 KiB
2Accepted0/072ms29076 KiB
3Accepted5/526ms20920 KiB
4Accepted5/525ms21400 KiB
5Accepted5/525ms21856 KiB
6Accepted5/525ms22216 KiB
7Accepted5/527ms22424 KiB
8Accepted5/526ms23040 KiB
9Accepted5/527ms23176 KiB
10Accepted5/548ms27816 KiB
11Accepted5/554ms28768 KiB
12Accepted5/559ms29820 KiB
13Accepted5/563ms31092 KiB
14Accepted5/567ms32104 KiB
15Accepted5/571ms32364 KiB
16Accepted5/571ms32204 KiB
17Accepted5/567ms32188 KiB