PROGRAMMING:Find the maximum
Enter a positive integer repeat (0 < repeat < 10) and perform the following operations: < br > repeat
First input a positive integer n, then input n integers, and then output the maximum value from the N integers.
###Input format:
The first line is a positive integer repeat (0 < repeat < 10)< br>
Next, there will be a repeat line: < br >
The first number of each row is a positive integer n (no more than 10), followed by N integers.
###Output format:
For each row starting from the second row, a maximum value is output. One output takes up one line.
###Input example:
```in
three
4 2 123 -100 0
4 9 1 -1 8
3 1 3 5
```
###Output example:
The corresponding output is given here. For example:
```out
one hundred and twenty-three
nine
five
```
answer:If there is no answer, please comment
This is a simple number of n to find the maximum to do repeat times. Therefore, as long as you can write the most basic n numbers and get the maximum value, you can set another layer of loop outside and execute repeat times.
Note: when finding the maximum value, be sure to set the first number involved in the comparison to the temporary maximum value max, and then read a number to compare with Max once. In this way, Max is always the maximum of the number that has been compared.
Another point, take the input example as an example, many students think that we should find 123, 9 and 5, and then unify the output. In fact, it's not. We can understand that there are three test cases with the maximum value. After finding the maximum value in one test case, we directly output it, and then make the second test case. After outputting 123, the second test case is started. After outputting 9, the third test case is started.
First input a positive integer n, then input n integers, and then output the maximum value from the N integers.
###Input format:
The first line is a positive integer repeat (0 < repeat < 10)< br>
Next, there will be a repeat line: < br >
The first number of each row is a positive integer n (no more than 10), followed by N integers.
###Output format:
For each row starting from the second row, a maximum value is output. One output takes up one line.
###Input example:
```in
three
4 2 123 -100 0
4 9 1 -1 8
3 1 3 5
```
###Output example:
The corresponding output is given here. For example:
```out
one hundred and twenty-three
nine
five
```
answer:If there is no answer, please comment
This is a simple number of n to find the maximum to do repeat times. Therefore, as long as you can write the most basic n numbers and get the maximum value, you can set another layer of loop outside and execute repeat times.
Note: when finding the maximum value, be sure to set the first number involved in the comparison to the temporary maximum value max, and then read a number to compare with Max once. In this way, Max is always the maximum of the number that has been compared.
Another point, take the input example as an example, many students think that we should find 123, 9 and 5, and then unify the output. In fact, it's not. We can understand that there are three test cases with the maximum value. After finding the maximum value in one test case, we directly output it, and then make the second test case. After outputting 123, the second test case is started. After outputting 9, the third test case is started.