#P5718. 【深基4.例2】找最小值

【深基4.例2】找最小值

Problem Description

Given nn and nn integers aia_i, find the minimum value among these nn integers.

Input Format

The first line contains a positive integer nn, which represents the number of values.

The second line contains nn non-negative integers, representing a1,a2ana_1, a_2 \dots a_n, separated by spaces.

Output Format

Output a non-negative integer, representing the minimum value among these nn non-negative integers.

5
5 7 4 2 6
2

Hint

Constraints: n100n \le 100 and 0ai10000 \le a_i \le 1000.

Translated by ChatGPT 5