## A Math Contest P1 - Arrays

View as PDF

Points: 5
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

You are given an array of integers . Suppose is any array of integers. Find the minimum possible positive value of .

At least one .

#### Input Specification

The first line contains an integer, .

The next line contains space-separated integers, .

#### Output Specification

Output the minimum positive value of .

#### Sample Input

3
2 -1 3

#### Sample Output

1

#### Explanation for Sample

One possible value for array is . Then, . This is the minimum positive value of amongst all values of .