using System; using System.Text; namespace yukiCoder { class MainClass { public static void Main(string[] args) { var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); int N = int.Parse(Console.ReadLine()); int[] dN = new int[N]; for (int i = 0; i < N; i++) { dN[i] = int.Parse(Console.ReadLine()); } for (int j = 0; j < N; j++) { StringBuilder result = new StringBuilder(); if (dN[j] == 1) { result.Append("1"); } else { result.Append("9"); } for (int k = 1; k < dN[j]; k++) { result.Append("0"); } Console.WriteLine(result); } //for (int j = 0; j < N; j++) //{ // decimal min = (decimal)Math.Pow(10, dN[j] - 1); // decimal max = (decimal)(Math.Pow(10, dN[j])); // Console.WriteLine(max - min); //} Console.Out.Flush(); } #region 入力 //// 文字列の入力 //string s = Console.ReadLine(); //// 整数の入力 //long n = long.Parse(Console.ReadLine()); //// 文字列配列の入力 //string[] inputStrArray = Console.ReadLine().Split(' '); //// 整数配列の入力 //var inputLongArray = Console.ReadLine().Split(' ').Select(i => long.Parse(i)).ToArray(); #endregion } }