AtCoder Beginner Contest 069
翻译中…
Problem Statement
翻译中…
In K-city, there are $n$ streets running east-west, and $m$ streets running north-south. Each street running east-west and each street running north-south cross each other. We will call the smallest area that is surrounded by four streets a block. How many blocks there are in K-city?
翻译中…
Constraints
翻译中…
$2 ≤ n, m ≤ 100$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
n m
翻译中…
Output
翻译中…
Print the number of blocks in K-city.
翻译中…
样例
Input #1
3 4
Output #1
6
There are six blocks, as shown below:

Input #2
2 2
Output #2
1
There are one block, as shown below:

题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。