Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Потребителски_логове
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string[] command = Console.ReadLine().Split(' ').ToArray();
  14. var hacker = new SortedDictionary<string, KeyValuePair<string,int>>();
  15. while (command[0] != "end")
  16. {
  17. string user = command[2].Substring(5);
  18. string ip = command[0].Substring(3);
  19. //string message = command[1].Substring(8);
  20. if (!hacker.ContainsKey(user))
  21. hacker.Add(user, new KeyValuePair<string, int>());
  22. hacker.Add(user,(ip,1));
  23. command = Console.ReadLine().Split(' ').ToArray();
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement