#K83492. Maximum Crystals
Maximum Crystals
Maximum Crystals
In this problem, you are given the number of players (n) and levels (m). For each player and each level, you are provided with the number of crystals they have. Your task is to determine the maximum number of crystals collected by any player at the end of any level.
Input is read from standard input (stdin) and output is written to standard output (stdout). Make sure your solution handles multiple test cases as demonstrated in the provided examples.
inputFormat
The first line contains two space-separated integers (n) and (m) representing the number of players and the number of levels respectively. Each of the following (n) lines contains (m) space-separated integers, where the (j)-th number on the (i)-th line represents the number of crystals the (i)-th player has at the end of the (j)-th level.
outputFormat
Output a single integer, which is the maximum number of crystals collected by any player in any level.## sample
3 4
3 2 5 1
4 3 7 6
5 9 2 4
9