using System; using System.Collections.Generic; using System.Text; using System.Linq; class Program { public void Proc() { Reader.IsDebug = false; this.SetDic(); string inpt = Reader.ReadLine(); StringBuilder ans = new StringBuilder(); inpt.ToList().ForEach(a=>ans.Append(dic[a])); Console.WriteLine(ans.ToString()); } private Dictionary dic = new Dictionary(); private void SetDic() { string src = "pfnovu"; string dec = "orange"; for(int i=0; i keyList = dic.Keys.ToList(); List valList = dic.Values.ToList(); List keyFusoku = alpha.Where(a=>!keyList.Contains(a)).ToList(); List valFusoku = alpha.Where(a=>!valList.Contains(a)).ToList(); dic[keyFusoku[0]] = valFusoku[0]; } public class Reader { public static bool IsDebug = true; private static String PlainInput = @" mbgrihcdejkolsty "; private static System.IO.StringReader Sr = null; public static string ReadLine() { if (IsDebug) { if (Sr == null) { Sr = new System.IO.StringReader(PlainInput.Trim()); } return Sr.ReadLine(); } else { return Console.ReadLine(); } } } static void Main() { Program prg = new Program(); prg.Proc(); } }