Ejemplo n.º 1
0
        public int solution(int N, string S)
        {
            // write your code in C# 6.0 with .NET 4.5 (Mono)
            var seats = new Seats(S);

            var num = 0;

            foreach (var row in seats.RowsList)
            {
                num += seats.FreeInRow(row);
            }

            return(num);
        }