Exemplo n.º 1
0
        public override string Solve()
        {
            var program = Parser.GetData().Split(',').Select(long.Parse).ToList();

            var robot = new PaintingRobot(program, 1);

            robot.Go();

            return(robot.PrintTag());
        }
Exemplo n.º 2
0
        public virtual string Solve()
        {
            var program = Parser.GetData().Split(',').Select(long.Parse).ToList();

            var robot = new PaintingRobot(program);

            robot.Go();

            return(robot.PaintedCells.ToString());
        }