Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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

	return 0;
}
Source by codejudge.blogspot.com #
 
PREVIOUS NEXT
Tagged: #codeforces
ADD COMMENT
Topic
Name
2+2 =