282A

#include <iostream>
#include <string>
using namespace std;

int main()
{
	int n, plus, sub;
	string ope;
	while(cin>>n)
	{
		plus=sub=0;
		while(n--)
		{
			cin>>ope;
			if(ope[1]=='-')
				++sub;
			else
				++plus;
		}
		cout<<plus-sub<<endl;
	}
	return 0;
}

  

猜你喜欢

转载自www.cnblogs.com/ozxics/p/10656486.html
今日推荐