Advertisement
rengetsu

Codeforces_282A

Jul 19th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. //Codeforces 282A
  2. #include <iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     char a, b, c;
  7.     int n, answ=0;
  8.     cin >> n;
  9.     for(int i=0;i<n;i++)
  10.     {
  11.         cin >> a >> b >> c;
  12.         if(b=='+'){answ++;}
  13.         else{answ--;}
  14.     }
  15.     cout << answ;
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement