Problem2491--循环计数-统计正负数

2491: 循环计数-统计正负数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 397  Solved: 340
[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

 基础B