Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Advanced
- {
- class Program
- {
- static void Main(string[] args)
- {
- var names = new HashSet<string>();
- int number = int.Parse(Console.ReadLine());
- for (int i = 0; i < number; i++)
- {
- var name = Console.ReadLine();
- names.Add(name);
- }
- foreach (var name in names)
- {
- Console.WriteLine(name);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement