Trung bình cộng

View as PDF

Submit solution

Points: 0.01 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
Scratch

Cho ~3~ số nguyên dương ~A~, ~B~ và ~C~. Hãy tính trung bình cộng của ~3~ số này.

Input

  • Dòng 1 chứa số nguyên dương ~A~
  • Dòng 2 chứa số nguyên dương ~B~
  • Dòng 3 chứa số nguyên dương ~C~

Cho biết ~1 \le A, B, C \le 10^6~.

Output

In ra trung bình cộng của ~3~ số ~A~, ~B~ và ~C~ làm tròn đến ~3~ chữ số thập phân.

Sample Input

2 3 5

Sample Output

3.333

Comments

Please read the guidelines before commenting.


There are no comments at the moment.