using System; using System.IO; using System.Collections; class Class1 { static void Main(string[] args) { // Make sure a file name was entered on the command line if (args.Length == 0) { Console.WriteLine ("Error: Missing file name and/or pattern"); return; } StreamReader reader = null; reader = new StreamReader (args[0]); ArrayList wl = new ArrayList (); ArrayList pl = new ArrayList (); char[] wp; char next = 'A'; bool f = false; for (string word = reader.ReadLine (); word != null; word = reader.ReadLine ()) { word.ToLower(); wl.Add(word); wp = word.ToCharArray(); wp[0]='A'; next = 'B'; for(int i=1;i=0;j--) { if(word[i]==word[j]) { wp[i]=wp[j]; f=true; break; } } if(!f) { wp[i]=next; next++; } } string t = new String(wp); pl.Add(t); } /*foreach(string t1 in wl) Console.Write(t1+"\n"); foreach(string test in pl) Console.Write(test+"\n");*/ int c=0; for(int k=0;k