Codeforces-SolutionsA/Codes/282 A - Bit++/282A.cpp
2023-12-31 14:54:40 +06:00

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;
}