AtCoder Beginner Contest 074
A
Bichrome Cells
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

We have an $N \times N$ square grid.

翻译中…

We will paint each square in the grid either black or white.

翻译中…

If we paint exactly $A$ squares white, how many squares will be painted black?

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 100$
  • $0 \leq A \leq N^2$
翻译中…

Inputs

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N
A

翻译中…

Outputs

翻译中…

Print the number of squares that will be painted black.

翻译中…

样例

Input #1
3
4
Output #1
5
There are nine squares in a $3 \times 3$ square grid. Four of them will be painted white, so the remaining five squares will be painted black.
Input #2
19
100
Output #2
261
Input #3
10
0
Output #3
100
As zero squares will be painted white, all the squares will be painted black.
题目信息
题号
abc074_a
时间限制
2 s
内存限制
256 MB

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