Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Codeforces 282A
- #include <iostream>
- using namespace std;
- int main()
- {
- char a, b, c;
- int n, answ=0;
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> a >> b >> c;
- if(b=='+'){answ++;}
- else{answ--;}
- }
- cout << answ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement