Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace FixEmails
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- var dict = new Dictionary<string, string>();
- while (input != "stop")
- {
- dict[input] = Console.ReadLine();
- input = Console.ReadLine();
- }
- Console.WriteLine(String.Join("\n", dict.Select(x => x.Key + " -> " + x.Value)
- .Where(x => !(new string[] { ".us", ".uk" }
- .Contains(x.Substring(x.Length - 3))))));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement