Advertisement
kiro671

Untitled

Jul 20th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Text;
  4. using System.Collections.Generic;
  5.  
  6. namespace ConsoleApp18
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. while (true) {
  13. string command = Console.ReadLine();
  14. if (command== "Visual Studio crash") {
  15. break;
  16. }
  17. string[] data = command.Split();
  18.  
  19. for (int i = 0; i < data.Length; i++)
  20. {
  21. int length = 0;
  22. string word = "";
  23. if (data[i] == "32656" && data[i+1]== "19759" && data[i+2]== "32763") {
  24. length = int.Parse(data[i + 4]);
  25. for (int j = 0; j < length; j++)
  26. {
  27. word += (char)int.Parse(data[i+6+j]);
  28. }
  29. Console.WriteLine(word);
  30. }
  31.  
  32. }
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. }
  40. }
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement