Tìm Min của Mảng

View as PDF

Submit solution

Points: 0.10
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Tìm phần tử nhỏ nhất trong dãy số A1, A2, .. An

Input Input số nguyên n đại diện cho số phần tử mảng và nhập giá trị cho các phần tử của mảng

Output
Output một dòng duy nhất phần tử nhỏ nhất trong mảng.

Examples

Input

3 
5 7 2

Output

2

Comments

Please read the guidelines before commenting.


There are no comments at the moment.