WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

The average of the digits

Threads: Write a program to 1 integer. Tính trung bình cộng các chữ số của nó

Input: A single integer

Output: Trung bình cộng các chữ số của nó, làm tròn 1 decimal

For example 1:
input:
234
output:
3.0
For example 2:
input:
30900
output:
2.4

You are not logged in? Log in to Submit Now!

2 Comments

Add a Comment