

実行時間制限: 2 sec / メモリ制限: 256 MiB
配点: 点
問題文
のマス目があります。
このマス目の各マスを白色または黒色に塗ることにしました (すべてのマスをどちらか片方の色に塗ります)。
ちょうど マスを白色に塗るとき、黒色に塗ることになるマスはいくつあるでしょうか。
制約
入力
入力は以下の形式で標準入力から与えられる。
出力
黒色に塗ることになるマスの個数を出力せよ。
入力例 1Copy
3 4
出力例 1Copy
5
のマス目にはマスが 個あります。 そのうち 個を白く塗るので、残った マスは黒く塗ることになります。
入力例 2Copy
19 100
出力例 2Copy
261
入力例 3Copy
10 0
出力例 3Copy
100
白く塗るマスの個数が なので、すべてのマスが黒く塗られます。
Score : points
Problem Statement
We have an square grid.
We will paint each square in the grid either black or white.
If we paint exactly squares white, how many squares will be painted black?
Constraints
Inputs
Input is given from Standard Input in the following format:
Outputs
Print the number of squares that will be painted black.
Sample Input 1Copy
3 4
Sample Output 1Copy
5
There are nine squares in a square grid. Four of them will be painted white, so the remaining five squares will be painted black.
Sample Input 2Copy
19 100
Sample Output 2Copy
261
Sample Input 3Copy
10 0
Sample Output 3Copy
100
As zero squares will be painted white, all the squares will be painted black.