#include <iostream>
#include <string>
using namespace std;
int main()
{
int N, A, M;
string statements;
while(cin >> N)
{
A = M = 0;
while(N--)
{
cin >> statements;
if(statements[1] == '+')
A++;
else
M++;
}
cout << A - M << endl;
}
return 0;
}
Codeforces_282A
最新推荐文章于 2022-08-11 13:30:47 发布