Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
  2. //we first create our dictionary structure
  3. Dictionary<string, int> phnbk = new Dictionary<string, int>();
  4. //get the number of items we are adding
  5. int n = Convert.ToInt32(Console.ReadLine());
  6. int i = 0;
  7. string input = "";
  8. //now were going to read everything in
  9. while (i <= n)
  10. {
  11. input = Console.ReadLine();
  12. input = input.Replace(" ", ",");
  13. phnbk.Add(new KeyValuePair<string, int>(input));
  14. i++;
  15. }
  16. //now we are going to search through and return
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement