daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top