MAVRG - Row Max Average
Given an N by M matrix get the maximum average of a row in it.
Input
First line containing two numbers N and M (1 <= N,M <= 10).
The following N lines each contains M numbers representing the matrix.
The absolute value of values in the matrix won't exceed 100.
Output
The maximum average of a row with 2 decimal points.
Example
Input:
2 2
1 0
1 1
Output: 1.00
Explanation of sample input:
The average of the first row is (1 + 0) / 2 = 0.5
The average of the second row is (1 + 1) / 2 = 1
Added by: | Omar ElAzazy |
Date: | 2011-12-13 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
Resource: | Own Problem |