Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
- //we first create our dictionary structure
- Dictionary<string, int> phnbk = new Dictionary<string, int>();
- //get the number of items we are adding
- int n = Convert.ToInt32(Console.ReadLine());
- int i = 0;
- string input = "";
- //now were going to read everything in
- while (i <= n)
- {
- input = Console.ReadLine();
- input = input.Replace(" ", ",");
- phnbk.Add(new KeyValuePair<string, int>(input));
- i++;
- }
- //now we are going to search through and return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement