QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 1024 MB

#23935. บรรจุลูกกวาดใส่ถุง

Statistiques

โจทย์ปัญหา

ซื้อลูกกวาดราคาเม็ดละ ($1$ เม็ด) $A$ เยน จำนวน $B$ เม็ด และถุงราคา $C$ เยน จำนวน $1$ ใบ จงหาว่าคิดเป็นเงินรวมทั้งหมดเท่าใด

ข้อจำกัด

  • $1 \le A \le 100$
  • $1 \le B \le 100$
  • $1 \le C \le 100$
  • ค่าที่รับเข้ามาทั้งหมดเป็นจำนวนเต็ม

ข้อมูลนำเข้า

ข้อมูลนำเข้าจะกำหนดให้ในรูปแบบต่อไปนี้:

A
B
C

ข้อมูลส่งออก

จงแสดงจำนวนเงินรวมทั้งหมด โดยไม่ต้องใส่หน่วย (เยน)

ห้ามแสดงสิ่งอื่นใดนอกจากคำตอบ (ห้ามแสดงข้อความแจ้งให้ป้อนข้อมูล ฯลฯ)

สำหรับรูปแบบคำตอบ สามารถดูอ้างอิงได้จากโจทย์ฝึกหัดและตัวอย่างคำตอบ

ตัวอย่างที่ 1

ตัวอย่างข้อมูลนำเข้า 1

20
3
10

ตัวอย่างข้อมูลส่งออก 1

70
  • เมื่อซื้อลูกกวาดราคา $1$ เม็ด $20$ เยน จำนวน $3$ เม็ด และถุงราคา $10$ เยน จำนวน $1$ ใบ จำนวนเงินรวมคือ $70$ เยน ดังนั้นจึงแสดงผลเป็น $70$

ตัวอย่างที่ 2

ตัวอย่างข้อมูลนำเข้า 2

70
2
100

ตัวอย่างข้อมูลส่งออก 2

240
  • เมื่อซื้อลูกกวาดราคา $1$ เม็ด $70$ เยน จำนวน $2$ เม็ด และถุงราคา $100$ เยน จำนวน $1$ ใบ จำนวนเงินรวมคือ $240$ เยน ดังนั้นจึงแสดงผลเป็น $240$

ตัวอย่างที่ 3

ตัวอย่างข้อมูลนำเข้า 3

23
10
15

ตัวอย่างข้อมูลส่งออก 3

245
  • เมื่อซื้อลูกกวาดราคา $1$ เม็ด $23$ เยน จำนวน $10$ เม็ด และถุงราคา $15$ เยน จำนวน $1$ ใบ จำนวนเงินรวมคือ $245$ เยน ดังนั้นจึงแสดงผลเป็น $245$

ตัวอย่างที่ 4

ตัวอย่างข้อมูลนำเข้า 4

100
100
100

ตัวอย่างข้อมูลส่งออก 4

10100
  • เมื่อซื้อลูกกวาดราคา $1$ เม็ด $100$ เยน จำนวน $100$ เม็ด และถุงราคา $100$ เยน จำนวน $1$ ใบ จำนวนเงินรวมคือ $10100$ เยน ดังนั้นจึงแสดงผลเป็น $10100$

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.