B. [例4.2]找最小值

    Type: Default 1000ms 256MiB

[例4.2]找最小值

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给出 nnnn 个整数 aia_i,求这 nn 个整数中最小值是什么。

输入格式

第一行输入一个正整数 nn,表示数字个数。

第二行输入 nn 个非负整数,表示 a1,a2ana_1,a_2 \dots a_n,以空格隔开。

输出格式

输出一个非负整数,表示这 nn 个非负整数中的最小值。

样例 #1

样例输入 #1

5
5 7 4 2 6

样例输出 #1

2

提示

数据保证,n100n\le1000ai10000\le a_i \le 1000

龙凤苑中学C班4.9

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2024-4-9 16:00
End at
2024-4-13 16:00
Duration
96 hour(s)
Host
Partic.
13