Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Numerics;
- using System.Collections.Generic;
- using System.Text;
- namespace _02._Memory_View
- {
- class Program
- {
- static void Main(string[] args)
- {
- string input = Console.ReadLine();
- List<int> word = new List<int>();
- StringBuilder sb = new StringBuilder();
- string str = "";
- string result = "";
- while (input != "Visual Studio crash")
- {
- str += input;
- input = Console.ReadLine();
- }
- List<int> nums = str
- .Split(" ", StringSplitOptions.RemoveEmptyEntries)
- .Select(int.Parse)
- .ToList();
- for (int i = 0; i < nums.Count; i++)
- {
- if (nums[i] == 32656 && nums[i + 1] == 19759 && nums[i + 2] == 32763)
- {
- int curr = nums[i + 4];
- for (int j = i + 6; j < i + 6 + curr; j++)
- {
- char a = (char)nums[j];
- sb.Append(a);
- result = sb.ToString();
- }
- Console.WriteLine(string.Join("", result));
- sb = new StringBuilder();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement