Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: declare a tab c++ 
Cpp :: Character cin(userInput) in c++ 
Cpp :: declare empty array in c++ 
Cpp :: array 2d to 1d 
Cpp :: has substr c++ 
Cpp :: max heap insertion c++ 
Cpp :: maximum subarray leetcode c++ 
Cpp :: STD::ERASE FUNCTION IN C++ 
Cpp :: size of unordered_set 
Cpp :: executing an opencv c++ code 
Cpp :: split string in c++ 
Cpp :: memset in cpp 
Cpp :: for_each c++ 
Cpp :: c++ length of int 
Cpp :: invert a binary tree 
Cpp :: c++ pointers 
Cpp :: operator overloading c++ 
Cpp :: C++ Syntax for Passing Arrays as Function Parameters 
Cpp :: c++ shared pointer operator bool 
Cpp :: pthread c++ example with output 
Cpp :: c++ string replace 
Cpp :: creating large maps cpp 
Cpp :: convert hex to decimal arduino 
Cpp :: how to pronounce beaucoup 
Cpp :: ++m in c 
Cpp :: how to find common divisors of two numbers in cpp 
Cpp :: viewlist exaple win32 
Cpp :: Password codechef solution in c++ 
Cpp :: find node from pos linkedlist c++ 
Cpp :: C++ initializing a thread with a public function of a class 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =