Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace _01.UniqueUsernames
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine()); //брой usernames
- HashSet<string> usernames = new HashSet<string>();
- for (int i = 1; i <= n; i++)
- {
- string username = Console.ReadLine();
- usernames.Add(username);
- }
- Console.WriteLine(string.Join(Environment.NewLine, usernames));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement