Advertisement
tochka

Memory View

Apr 29th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.33 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6.  
  7. namespace Memory_View
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string input = Console.ReadLine();
  14.  
  15.             StringBuilder str = new StringBuilder();
  16.  
  17.             while (input != "Visual Studio crash")
  18.             {
  19.                 str.Append(input + " ");
  20.                 input = Console.ReadLine();
  21.             }
  22.  
  23.             var split = str.ToString().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
  24.  
  25.             List<int> list = new List<int>();
  26.  
  27.             foreach (var item in split.Where(a => a != "0" && a != "32656" && a != "19759" && a != "32763"))
  28.             {
  29.                 var num = int.Parse(item);
  30.                 list.Add(num);
  31.             }
  32.  
  33.             List<string> output = new List<string>();
  34.  
  35.             foreach (var item in list.Skip(1))
  36.             {
  37.                 var ch = (char)item;
  38.  
  39.                 if(item >= 32 && item <= 126)
  40.                 {
  41.                     Console.Write(ch);
  42.                 }
  43.  
  44.                 if (item < 10)
  45.                 {
  46.                     Console.WriteLine();
  47.                 }
  48.  
  49.             }
  50.  
  51.            Console.WriteLine();
  52.         }
  53.     }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement