// LEETCODE · TRANSMISSION

LEETCODEEASYProblem ↗

Domino piling

Content

Divide the area of the board by the area of a domino.

Idea

The area of the board is $M \times N$ and the area of a domino is $2 \times 1 = 2$.

Code

#include <iostream>

using namespace std;

int main() {
    int M, N;
    cin >> M >> N;

    int area = M * N;
    int dominoArea = 2 * 1;

    cout << area / dominoArea << endl;

    return 0;
}