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 Потребителски_логове
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] command = Console.ReadLine().Split(' ').ToArray();
- var hacker = new SortedDictionary<string, KeyValuePair<string,int>>();
- while (command[0] != "end")
- {
- string user = command[2].Substring(5);
- string ip = command[0].Substring(3);
- //string message = command[1].Substring(8);
- if (!hacker.ContainsKey(user))
- hacker.Add(user, new KeyValuePair<string, int>());
- hacker.Add(user,(ip,1));
- command = Console.ReadLine().Split(' ').ToArray();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement