#P5718. Find the Minimum Value

    ID: 18946 Type: Default 1000ms 256MiB

Find the Minimum Value

Find the Minimum Value

Given an integer n and n integers ai, the task is to determine the minimum value among these integers. The input begins with a single integer n representing the number of integers, followed by n integers. Your solution should efficiently identify and output the smallest number.

Note: If only one integer is provided, that integer is considered the minimum.

inputFormat

The first line contains an integer n denoting the number of integers. The second line contains n space-separated integers ai.

outputFormat

Output a single integer which is the minimum value among the given n integers.

sample

5
1 2 3 4 5
1