Codeforces-SolutionsA/Codes/282 A - Bit++/282A.cpp

18 lines
274 B
C++
Raw Normal View History

2023-06-07 22:14:56 +08:00
#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;
}