QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23965. 面積

Statistics

將面積為 $x$ 的圖形放大為原來的 $a$ 倍時,其面積變為 $x a^2$。

求將面積為 $Y$ 的圖形放大為原來的 $B$ 倍時的面積。

限制條件

  • $1 \le Y \le 100$。
  • $1 \le B \le 100$。
  • 輸入的值皆為整數。

輸入格式

輸入以下列格式給出:

Y B

輸出格式

輸出將面積為 $Y$ 的圖形放大為原來的 $B$ 倍時的面積。

除答案外請勿輸出任何內容。(亦請勿輸出提示輸入的文字等。)

範例

範例輸入 1

3 2

範例輸出 1

12

範例說明 1

將面積為 $3$ 的圖形放大為原來的 $2$ 倍時,面積變為 $3 \times 2^2 = 12$。因此,輸出 $12$。

範例輸入 2

10 5

範例輸出 2

250

範例說明 2

將面積為 $10$ 的圖形放大為原來的 $5$ 倍時,面積變為 $10 \times 5^2 = 250$。因此,輸出 $250$。

範例輸入 3

1 1

範例輸出 3

1

範例說明 3

將面積為 $1$ 的圖形放大為原來的 $1$ 倍時,面積變為 $1 \times 1^2 = 1$。因此,輸出 $1$。

範例輸入 4

100 100

範例輸出 4

1000000

範例說明 4

將面積為 $100$ 的圖形放大為原來的 $100$ 倍時,面積變為 $100 \times 100^2 = 1000000$。因此,輸出 $1000000$。

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.