mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 06:13:28 +00:00
27 lines
383 B
C#
27 lines
383 B
C#
using System;
|
|
|
|
namespace problem_282A
|
|
{
|
|
public class problem_282A
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
int n = int.Parse(Console.ReadLine());
|
|
int x = 0;
|
|
while (n-- > 0)
|
|
{
|
|
string s = Console.ReadLine();
|
|
if (s.Contains("++"))
|
|
{
|
|
x++;
|
|
}
|
|
else
|
|
{
|
|
x--;
|
|
}
|
|
}
|
|
Console.Write(x);
|
|
}
|
|
}
|
|
}
|