This commit is contained in:
xice09
2018-07-31 23:21:54 +08:00
parent 36e132edbc
commit 36f2ab51ab
10 changed files with 176 additions and 0 deletions

20
2008.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include <iostream>
using namespace std;
int main(){
int a,b,c,n;
double t;
while(cin>>n && n>0){
a = b = c = 0;
for(int i=0;i<n;i++){
cin >> t;
if(t<0)
a++;
else if (t>0)
c++;
else
b++;
}
cout << a << ' ' << b << ' ' << c << endl;
}
return 0;
}