#t205. 计算(a+b)/c的值

计算(a+b)/c的值

Compute (a+b)/c

Problem Background

Special for beginners, ^_^

Problem Description

Given 33 integers a,b,ca, b, c, compute the value of the expression (a+b)/c(a+b)/c, where // denotes integer (truncating) division.

Input Format

A single line containing three integers a,b,ca, b, c, separated by single spaces. (−10,000<a,b,c<10,000-10,000 \lt a,b,c \lt 10,000, and cc is not 00.)

Output Format

A single line: the value of the expression.

Sample Input

1 1 3

Sample Output

0

Hint

  • Think: when two int values are divided, what type is the result? This problem wants exactly that result — don't rush to convert to double.
  • Check against the sample: 1 1 3 → 0.

Note: In C/C++, integer division truncates by default, i.e. the fractional part is simply discarded — equivalently, it is the integer part of the quotient of the two numbers.