18 lines
274 B
C++
18 lines
274 B
C++
#include <bits/stdc++.h>
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int n, x = 0;
|
|
cin >> n;
|
|
while (n--)
|
|
{
|
|
char op[4];
|
|
cin >> op;
|
|
if (op[1] == '+')
|
|
x++;
|
|
else if (op[1] == '-')
|
|
x--;
|
|
}
|
|
cout << x << endl;
|
|
} |