#P5703. 【深基2.例5】苹果采购

【深基2.例5】苹果采购

Apple Purchase

Problem Source

Luogu P5703

Problem Description

Now we need to purchase some apples. Each student can be given a fixed number of apples, and the number of students is already known. How many apples need to be purchased?

Input Format

Input two positive integers not exceeding 10^9, representing the number of apples each person gets and the number of students, respectively.

Output Format

One integer, the answer. The input and the answer are both guaranteed to be non-negative integers within the range of int.

Sample Input

5 3

Sample Output

15

Hint

This is your first problem with input: the judge will "feed" a line 5 3 to your program.

  • Read with cin: int a, b; cin >> a >> b; (cin automatically skips spaces).
  • After reading, it is pure arithmetic: number per person × number of students, printed with cout.
  • Check against the sample: input 5 3 should output 15.