#K93542. Maximum Coins Pick
Maximum Coins Pick
Maximum Coins Pick
You are given a list of coin values. Your task is to pick the coin with the maximum value from the list. Formally, given numbers \(a_1, a_2, \ldots, a_n\), you need to compute \(\max(a_1, a_2, \ldots, a_n)\). This is a straightforward problem intended to test your ability to read input, process arrays, and output results correctly.
inputFormat
The input consists of two lines. The first line contains a single integer (n) which represents the number of coins. The second line contains (n) space-separated integers representing the values of the coins.
outputFormat
Output a single integer which is the maximum coin value in the given list.## sample
4
4 2 7 1
7