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.Threading.Tasks;
- using System.Text.RegularExpressions;
- namespace _3._Camera_View
- {
- class Program
- {
- static void Main(string[] args)
- {
- int [] digits = Console.ReadLine().Split().Select(int.Parse).ToArray();
- string income = Console.ReadLine();
- int toSkip = digits[0];
- int toTake = digits[1];
- string patern = @"|<";
- string[] substring = Regex.Split(income, patern);
- foreach (var item in substring)
- {
- Console.WriteLine(string.Join("",item));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement