Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int val = Convert.ToInt32(Console.ReadLine());
- int x =0;
- for (int i = 0; i < val; i++)
- {
- x = Console.ReadLine().Contains("+") ? ++x : --x;
- }
- Console.WriteLine(x);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement