Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- class Program
- {
- static void Main()
- {
- List<string> p = Console.ReadLine().Split().ToList();
- Dictionary<string, string> phonebook = new Dictionary<string, string>();
- while (p[0] != "END")
- {
- p = Console.ReadLine().Split().ToList();
- if (p[0] == "A")
- {
- phonebook.Add(p[1], p[2]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement