Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The input file contains one or more board descriptions, followed by a line containing the number 0 that signals the end of the file. Each
The input file contains one or more board descriptions, followed by a line containing the number
that signals the end of the file. Each board description begins with a line containing a positive integer
n that is the size of the board; n will be at most The next n lines each describe one row of the board,
with a indicating an open space and an uppercase X indicating a wall. There are no spaces in the
input file.
Output
For each test case, output one line containing the maximum number of rooks that can be placed on the
board in a legal configuration.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started