Submit | All submissions | Best solutions | Back to list |
AVRG - Simple Average |
There is a customer that always comes to a store and buys 6 different products, but the problem is that he always takes too much time chosing and trying the products because he needs that the average of the products gives an exact number.
Input
As input you will be given 6 lines, each with the cost of one of the products.
Output
Your problem should output the average cost of the products.
Example
Input: 3 7 5 2 1 6 Output: 4
Added by: | Sergio Monsalve |
Date: | 2016-07-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC NCSHARP COFFEE DART FORTH JULIA KTLN OCT PROLOG PYTHON PYPY PYPY3 PYTHON3 PY_NBC R RACKET SQLITE SWIFT UNLAMBDA |
hide comments