Answers for "bit++ codeforces in c++"

C++
0

bit++ codeforces in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x = 0;
	string ch;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> ch;
		if (ch[1]=='+')
			x++;
		else
			x--;
	}
	cout << x << "n";

	return 0;
}
Posted by: Guest on February-10-2022

Code answers related to "bit++ codeforces in c++"

Browse Popular Code Answers by Language