예제 #1
0
        private (int personCount, int roundCount) StabilizeSeating()
        {
            CharMap map = new CharMap(inputList.ToArray());

            int roundCount = 0;

            while (ExecuteRound(ref map))
            {
                roundCount++;
            }

            int personCount = map.Count(pos => pos.c == Person);

            return(personCount, roundCount);
        }