#K92227. Time to Serve Customers
Time to Serve Customers
Time to Serve Customers
You are given a number of customers, each with a specific number of items that need to be processed. The system can process S items per minute. For each customer, the serving time is given by the formula:
\(T_i = \frac{items_i}{S}\)
where \(items_i\) is the number of items for the i-th customer. Your task is to compute the total time required to serve all customers:
\(Total\ Time = \sum_{i=1}^{N} \frac{items_i}{S}\)
Output the total time rounded to six decimal places.
inputFormat
The input consists of two lines. The first line contains two space-separated integers N and S, where N is the number of customers and S is the processing speed (items per minute). The second line contains N space-separated integers, where each integer represents the number of items for a customer.
outputFormat
Output a single line containing the total time required to serve all customers, rounded to six decimal places.
## sample3 1
1 1 1
3.000000
</p>