Problem3502--【语言基础】CF1054A - Be positive(单用例)

3502: 【语言基础】CF1054A - Be positive(单用例)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Input

第一行一个整数 n (1<=n<=100)
接下来n个整数,每个整数要么是-1,要么是0,要么是1

Output

输出一个整数 —— 使数组元素乘积严格为正所需的最少操作次数。

Sample Input Copy

3
-1 0 1

Sample Output Copy

3

Source/Category