Codeforces “280A-Bit++” solution( Bangla ) | Cpp language

**Before watching this make sure that you’ve tried enough**

#include<iostream>
#include<string>
using namespace std;
int main()
{
    int a,x=0;
    string s;
    cin>>a;
    for(int i=0; i<a; i++)
    {
        cin>>s;
        if(s[1]=='+')
        {
            x++;
        }
        else
        {
            x--;
        }
    }
    cout<<x;
}

 

If this solution helped you, please share this with your friends.

Leave a Comment