Problem4196--周周练-寒假3课:循环计数1

4196: 周周练-寒假3课:循环计数1

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 162  Solved: 65
[Status] [Submit] [Creator:]

Description

输入n个整数,统计其中正数、负数和零的个数。

Input

输入为两行。
第一行为n,表示整数序列的长度(n<=100)。
第二行为n个正整数,每两个数之间用一个空格隔开。

Output

正数,负数,零的个数
换行输出

Sample Input Copy

5
1 -2 0 3 -5

Sample Output Copy

正数:2
负数:2
零:1

Source/Category