QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23956. เงินที่มีอยู่

Statistics

โจทย์ปัญหา

บิทาโร่มีธนบัตร $1\,000$ เยน อยู่ $A$ ใบ และมีธนบัตร $10\,000$ เยน อยู่ $B$ ใบ จงแสดงผลว่าเขามีเงินรวมทั้งหมดเท่าใด

ข้อจำกัด

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

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

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

A
B

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

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

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

ตัวอย่างข้อมูลนำเข้าและส่งออก

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

7
2

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

27000
  • บิทาโร่มีเงิน $1\,000 \times 7 + 10\,000 \times 2 = 27\,000$ เยน ดังนั้นจึงแสดงผล $27\,000$

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

11
1

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

21000
  • บิทาโร่มีเงิน $1\,000 \times 11 + 10\,000 \times 1 = 21\,000$ เยน ดังนั้นจึงแสดงผล $21\,000$

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.