Easy
Execution time limit is 2 seconds
Runtime memory usage limit is 2,048 megabytes
Alice is an active Instagram user who shares a photo every day. You are given the total number of her posts, N (0 ≤ N ≤ 10,000,000), and the number of likes L[i]
each post received, where 1 ≤ i ≤ N and 0 ≤ L[i]
≤ 1,000.
Input
The first line contains the integer N, representing the number of posts. The second line contains N integers, each representing the number of likes L[i]
for the respective post.
Output
Determine the post with the maximum number of likes and output that number.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 21%