#include <stdio.h>
int main()
{int n,i,num,a=0,b=0,c=0;scanf("%d",&n);for(i=1;i<=n;i++){scanf("%d",&num);if(num<0){a++;}else if(num==0){b++;}else if(num>0){c++;}}printf("%d %d %d",a,b,c);return 0;
}
详细解决方案
【1339】数值统计
热度:93 发布时间:2023-12-06 10:01:11.0