Phân tích #3

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập vào số nguyên dương \(n\). In ra trung bình cộng các chữ số của \(n\).

Input

  • Gồm một dòng duy nhất chứa số nguyên dương \(n\) \((n \leq 10^9)\).

Output

  • Gồm một dòng duy nhất chứa kết quả là trung bình cộng các chữ số của \(n\) (làm tròn đến chữ số thập phân thứ 2).

Example

Test 1
Input
346
Output
4.33
Test 2
Input
123
Output
2.00

Comments

There are no comments at the moment.