Exemplo n.º 1
0
class Program { static void Main(string[] args)
                {
                    using (var output = new CC.FormattedStreamWriter(Console.OpenStandardOutput())) using (var error = new CC.FormattedStreamWriter(Console.OpenStandardError())) using (var input = new CC.BufferedStreamReader(Console.OpenStandardInput())) new CC.Solver(input, output, error).Do();
                }
Exemplo n.º 2
0
 public static uint UnsignedInt(this BufferedStreamReader reader)
 {
     return(uint.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Exemplo n.º 3
0
 public static ulong UnsignedLong(this BufferedStreamReader reader)
 {
     return(ulong.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Exemplo n.º 4
0
 public static string String(this BufferedStreamReader reader)
 {
     return(reader.ReadToken());
 }
Exemplo n.º 5
0
 public Solver(BufferedStreamReader read, FormattedStreamWriter write, FormattedStreamWriter error)
 {
     this.read = read; this.write = write; this.error = error;
 }
Exemplo n.º 6
0
 public static decimal Decimal(this BufferedStreamReader reader)
 {
     return(decimal.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Exemplo n.º 7
0
 public static double Double(this BufferedStreamReader reader)
 {
     return(double.Parse(reader.ReadToken(), CultureInfo.InvariantCulture));
 }
Exemplo n.º 8
0
 public ConcreteSolver(BufferedStreamReader read, FormattedStreamWriter write)
 {
     this.read  = read;
     this.write = write;
 }