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.Text.RegularExpressions;
- namespace Memory_View
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- StringBuilder str = new StringBuilder();
- while (input != "Visual Studio crash")
- {
- str.Append(input + " ");
- input = Console.ReadLine();
- }
- var split = str.ToString().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
- List<int> list = new List<int>();
- foreach (var item in split.Where(a => a != "0" && a != "32656" && a != "19759" && a != "32763"))
- {
- var num = int.Parse(item);
- list.Add(num);
- }
- List<string> output = new List<string>();
- foreach (var item in list.Skip(1))
- {
- var ch = (char)item;
- if(item >= 32 && item <= 126)
- {
- Console.Write(ch);
- }
- if (item < 10)
- {
- Console.WriteLine();
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement