Horje
bit++ codeforces in c++ Code Example
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;
}




Cpp

Related
what is meant by pragma once in c++ Code Example what is meant by pragma once in c++ Code Example
Round 1 Confusion codechef solution in c++ Code Example Round 1 Confusion codechef solution in c++ Code Example
notepad++ Code Example notepad++ Code Example
integer max value c++ Code Example integer max value c++ Code Example
how to input a file path in c++ Code Example how to input a file path in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9