2356: Maximum Number
Result | TIME Limit | MEMORY Limit | Run Times | AC Times | JUDGE |
---|---|---|---|---|---|
3s | 8192K | 674 | 362 | Standard |
Given a series of integer, find the maximum number.
Input
Multi-case. The first line gives count n (n < 100) of this array. n=0 means end of input. There are one integer in the next n lines.
Output
For each case, output the maximum number in one line.
Sample Input
3 1 4 5 0
Sample Output
5
Problem Source: 1st Jilin Province Contest Warmup, skywind
Submit / Problem List / Status / Discuss