Average Salary
A company employs a number of employees, but not less than two: the director and the chief accountant. We also know that the number of employees does not exceed 1000. The task is to determine the average salary in the enterprise by knowing salary of every employee.
Specifications
Input
Wages of employees (not necessarily in one line) in national currency.
Output
Average salary in the enterprise in UAH to within 2 digits after the decimal point.
Problem information
Time Limit: 0.5 secondsMemory Limit: 64 MB
Balls for the passed test: 5
Complexity: 15% 318/372
Source: Stage III All-Ukrainian Olympiad 2009-2010 Zhitomir
Example
Example input100.50 300.50 |
Example output200.50 |
| ← Only three handfuls! | Problems |
