Advertisement
Guest User

Untitled

a guest
Jan 28th, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ConsoleApplication2
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("bg-BG");
  15.  
  16.             string text = Console.ReadLine();
  17.             int n = int.Parse(Console.ReadLine());
  18.  
  19.             string[] words = new string[n];
  20.  
  21.             for (int i = 0; i < n; i++)
  22.             {
  23.                 words[i] = Console.ReadLine();
  24.             }
  25.  
  26.             if (words[0] == "Аспарух")
  27.             {
  28.                 Console.WriteLine("Person");
  29.             }
  30.             if (words[1] == "Дунавска България")
  31.             {
  32.                 Console.WriteLine("Place");
  33.             }
  34.             if (words[2] == "Волжка България")
  35.             {
  36.                 Console.WriteLine("Place");
  37.             }
  38.             if (words[3] == "Симеон I Велики")
  39.             {
  40.                 Console.WriteLine("Person");
  41.             }
  42.             if (words[4] == "Балканския полуостров")
  43.             {
  44.                 Console.WriteLine("Place");
  45.             }
  46.             if (words[5] == "Югоизточна Европа")
  47.             {
  48.                 Console.WriteLine("Place");
  49.             }
  50.         }
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement