Advertisement
terlichki

Untitled

Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Text.RegularExpressions;
  7.  
  8. namespace _3._Camera_View
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. int [] digits = Console.ReadLine().Split().Select(int.Parse).ToArray();
  15. string income = Console.ReadLine();
  16. int toSkip = digits[0];
  17. int toTake = digits[1];
  18. string patern = @"|<";
  19. string[] substring = Regex.Split(income, patern);
  20. foreach (var item in substring)
  21. {
  22. Console.WriteLine(string.Join("",item));
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement