#K73512. Final Scores Computation
Final Scores Computation
Final Scores Computation
You are given n players and m rounds. For each player, you are provided with scores from each round. The final score for a player is defined as the maximum score among all rounds. More formally, if the scores for player i are \(a_{i1}, a_{i2}, \dots, a_{im}\), then the final score of player i is \(\max_{1 \le j \le m} \{a_{ij}\}\).
Your task is to compute the final scores for all players.
inputFormat
The input is given from stdin and has the following format:
n m s11 s12 ... s1m s21 s22 ... s2m ... sn1 sn2 ... snm
where:
n
is the number of players.m
is the number of rounds.sij
is the score of the i-th player in the j-th round.
outputFormat
Output the final scores for each player in one line separated by a single space, using stdout.
## sample3 4
10 35 20 15
40 20 50 30
25 30 20 40
35 50 40