QOJ.ac

QOJ

时间限制: 2 s 内存限制: 1024 MB

#23935. Drops Packing

统计

問題文

1 個 A 円の飴を B 個と,C 円の袋を 1 つ買う.合計金額はいくらか求めよ.

制約

  • 1 ≦ A ≦ 100.
  • 1 ≦ B ≦ 100.
  • 1 ≦ C ≦ 100.
  • 入力される値はすべて整数である.

入力

入力は以下の形式で与えられる.
A
B
C

出力

合計金額を,単位 (円) を省いて出力せよ.

答え以外は何も出力しないこと.(入力を促す文章なども出力しないこと.)

解答形式については,練習問題やその解答例を参考にしても良い.


入力例 1

20
3
10

出力例 1

70
  • 1 個 20 円の飴を 3 個と, 10 円の袋を 1 つ買うとき,合計金額は 70 円なので,70 を出力する.

入力例 2

70
2
100

出力例 2

240
  • 1 個 70 円の飴を 2 個と, 100 円の袋を 1 つ買うとき,合計金額は 240 円なので,240 を出力する.

入力例 3

23
10
15

出力例 3

245
  • 1 個 23 円の飴を 10 個と, 15 円の袋を 1 つ買うとき,合計金額は 245 円なので,245 を出力する.

入力例 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.