Problem1638--数组的类型(10分)

1638: 数组的类型(10分)

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

Description

一个长度为n的整数数组a_1,a_2,...,a_n
如果数组的元素全为负<0,输出negtive
如果数组的元素全为正>0,输出positive
如果数组的元素全为0,输出zero
否则,输出complex

Input

多组测试数据(数据组数\le 100
第一行一个整数n(1\le n\le 100)
第二行n个整数a_1,a_2,...,a_n(-1\le a_i\le 1)

Output

如果数组的元素全为负<0,输出negtive
如果数组的元素全为正>0,输出positive
如果数组的元素全为0,输出zero
否则,输出complex

Sample Input Copy

4
0 0 0 0
4
1 1 1 1
4
-1 -1 -1 -1
3
-1 0 1

Sample Output Copy

zero
positive
negtive
complex

Source/Category