Computer Science, asked by rakshithareddypatil8, 6 hours ago

Mr. Tom has just gifted his son a chessboard. The chessboard is
kind of weird and contains black and white cells in random order.
The black cell is represented by 'B' and the while cell by W. Now
Mr. Tom wants his son to solve a problem for him so that he
knows whether his son is a genius.
Mr. Tom wants his son to perform an operation any number of
times. Select a row or column in the chessboard, and invert the
color of all the squares present, black becomes white and vice
versa.
The son starts drawing the rectangle with only black squares
along the lines. Find the maximum possible area that the son can
draw when the operation is performed optimally.
Constraints
2<=BW <= 2000
Board(i, j) == 'B' or Board(i, j) W
Input Format
The first line contains 2 integers B and N.
Then follows Blines, where each contains N characters either
'B' or W, representing the board.
Output Format
Maximum possible areas of son's rectangle​

Answers

Answered by mohansubba503
1

Answer:

Students will achieve their highest mathematical goals. ... In addition, the teachers in the Department of Mathematics want you to be an ... (I.4.3) Later you have another dark chocolate bar.

Similar questions