Tích Nhỏ Nhất

PDF

Submit solution

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

Authors:
Problem types
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Yêu cầu

Cho mảng ~A~ gồm ~N~ phần tử .
Tìm tích nhỏ nhất của 2 phần tử bất kì trong mảng đã cho.

Dữ liệu

Dòng đầu ghi ~N~.
Dòng tiếp theo chứa ~N~ số nguyên ~a_i~.

Kết quả

Xuất ra tích nhỏ nhất.

Giới hạn

\(1 \leq N \leq 10^6 \), \(0 \leq ~a_i~ \leq ~10^4~\).

Input

4
1 2 3 4

Output

2

Comments

Please read the guidelines before commenting.


There are no comments at the moment.