QOJ.ac

QOJ

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

#23935. אריזת סוכריות

통계

בעיה

קונים $B$ סוכריות שמחיר כל $1$ מהן הוא $A$ ין, ו-$1$ שקית שמחירה $C$ ין. מצאו מהו הסכום הכולל.

מגבלות

  • $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
  • כאשר קונים $3$ סוכריות במחיר $20$ ין לכל $1$ יחידה, ו-$1$ שקית במחיר $10$ ין, הסכום הכולל הוא $70$ ין, ולכן מדפיסים $70$.

דוגמה 2

קלט לדוגמה 2

70
2
100

פלט לדוגמה 2

240
  • כאשר קונים $2$ סוכריות במחיר $70$ ין לכל $1$ יחידה, ו-$1$ שקית במחיר $100$ ין, הסכום הכולל הוא $240$ ין, ולכן מדפיסים $240$.

דוגמה 3

קלט לדוגמה 3

23
10
15

פלט לדוגמה 3

245
  • כאשר קונים $10$ סוכריות במחיר $23$ ין לכל $1$ יחידה, ו-$1$ שקית במחיר $15$ ין, הסכום הכולל הוא $245$ ין, ולכן מדפיסים $245$.

דוגמה 4

קלט לדוגמה 4

100
100
100

פלט לדוגמה 4

10100
  • כאשר קונים $100$ סוכריות במחיר $100$ ין לכל $1$ יחידה, ו-$1$ שקית במחיר $100$ ין, הסכום הכולל הוא $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.