QOJ.ac

QOJ

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

#23973. Test

통계

Problem Statement

In a test, you correctly answered $1$ problem worth $A$ points per $1$ problem, and correctly answered $B$ problems worth $300$ points per $1$ problem.

Output the total score of the problems you answered correctly.

Constraints

  • $1000 \le A \le 32000$.
  • $1 \le B \le 10$.
  • All input values are integers.

Input

The input is given in the following format:

A
B

Output

Output the total score of the problems you answered correctly.

Do not output anything other than the answer. (Do not output sentences prompting for input, etc.)

For the output format, you may also refer to Practice Problems and Their Sample Solutions.


Sample Input $1$

1000
1

Sample Output $1$

1300

In the test, you correctly answered $1$ problem worth $1000$ points per $1$ problem, and correctly answered $1$ problem worth $300$ points per $1$ problem.

The total score of the problems you answered correctly is $1000 \times 1 + 300 \times 1 = 1300$. Therefore, output $1300$.


Sample Input $2$

8000
2

Sample Output $2$

8600

In the test, you correctly answered $1$ problem worth $8000$ points per $1$ problem, and correctly answered $2$ problems worth $300$ points per $1$ problem.

The total score of the problems you answered correctly is $8000 \times 1 + 300 \times 2 = 8600$. Therefore, output $8600$.


Sample Input $3$

32000
3

Sample Output $3$

32900

In the test, you correctly answered $1$ problem worth $32000$ points per $1$ problem, and correctly answered $3$ problems worth $300$ points per $1$ problem.

The total score of the problems you answered correctly is $32000 \times 1 + 300 \times 3 = 32900$. Therefore, output $32900$.


Sample Input $4$

1000
10

Sample Output $4$

4000

In the test, you correctly answered $1$ problem worth $1000$ points per $1$ problem, and correctly answered $10$ problems worth $300$ points per $1$ problem.

The total score of the problems you answered correctly is $1000 \times 1 + 300 \times 10 = 4000$. Therefore, output $4000$.

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.