#include <iostream>
using namespace std;
int main() {
int cnt=0;
int t=10;
while(t--)
{
int x;
cin>>x;
if(x>0)
cnt++;
}
cout<<"positive:"<<cnt<<'\n';
cout<<"negative:"<<10-cnt<<'\n';
}
// 64 位输出请用 printf("%lld")
其实我在想,如果你数据给0的话,这题就不能简单的用10-cnt来写了

京公网安备 11010502036488号