You are given a tiled chart paper of
Notes
Input Format
The first line contains two space-separated integers
In the next
Output Format
In the output, you need to print an integer that denotes the required count as stated in the problem statement.
Constraints
9 9 010101010 101010101 010101010 101010101 010101010 101010101 010101010 101010101 010101010
4
There are four ways to cut the chessboard out of the given chart paper.
Please login to use the editor
You need to be logged in to access the code editor
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor