ac

zhyf  •  16天前


include <bits/stdc++.h>

using namespace std;

int main() {

int n;
int zs = 0, zr = 0, fs = 0;
cin >> n;
for (int i = 0; i < n; i++) {
	int t;
	cin >> t;
	if (t > 0) {
		zs++;
	} else if (t < 0) {
		fs++;
	} else {
		zr++;
	}
}
cout << zs << " " << zr << " " << fs;
return 0;

}


评论:

请先登录,才能进行评论