Олимпиадный тренинг

Задача 30754. Finding the Minimum Using Priority Queue


Задача

Темы: Куча
Given a sequence of numbers. Find the smallest number in it.
 
Input
The number N is given first (the number of numbers in the sequence, 1<=N< ;=100000) and then
N numbers.
 
Output
Print the smallest number.

Enter Output
7
4 2 5 -1 4 6 2
-1