Example #1
0
 public static void ArrayLine <T>(this FormattedStreamWriter writer, T[] array, int n, string format = "{0}", string separator = " ")
 {
     for (int i = 0; i < n; ++i)
     {
         if (i > 0)
         {
             writer.Write(separator);
         }
         writer.Write(format, array[i]);
     }
     writer.WriteLine();
 }
Example #2
0
class Program { static void Main(string[] args)
                {
                    using (var output = new CC.BP.FormattedStreamWriter(Console.OpenStandardOutput())) using (var input = new CC.BP.BufferedStreamReader(Console.OpenStandardInput())) new CC.ConcreteSolver(input, output).Do();
                }
Example #3
0
 public static void ArrayLine <T>(this FormattedStreamWriter writer, T[] array, string format = "{0}", string separator = " ")
 {
     writer.ArrayLine(array, array.Length, format, separator);
 }