#2476. 练31.2 数值统计
练31.2 数值统计
说明
统计给定的 $n$ 个数中,负数、零和正数的个数。输入格式
输入的第一个数是整数 $n$,表示需要统计的数值的个数,然后是 $n$ 个整数,-$100$≤ 所有数字 ≤$100$。输出格式
输出一行 $a$,$b$ 和 $c$,分别表示给定的数据中负数、零和正数的个数。6 0 1 2 3 -1 0
1 2 3
6 0 1 2 3 -1 0
1 2 3
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.