QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 1024 MB

#23965. พื้นที่

통계

เมื่อขยายรูปทรงที่มีพื้นที่ $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.