diff --git a/2018_05/Program.cs b/2018_05/Program.cs index 055f93d..2a0a3cd 100644 --- a/2018_05/Program.cs +++ b/2018_05/Program.cs @@ -16,7 +16,24 @@ namespace _2018_05 string resTab = File.ReadAllText(@"..\..\..\Data\Adventofcode_181205\2018_05_data.txt"); //string resTab = "dabAcCaCBAcCcaDA"; + SortedSet charset = new SortedSet(); + foreach(char x in resTab.ToCharArray()) + { + try + { + charset.Add(x); + } + catch (Exception) + { } + } + + foreach(char y in charset) + { + Write($"{y},"); + } + + ReadKey(); int varv = 0;