using System;
using System.Collections.Generic;
using System.Linq;
public class Test
{
static IEnumerable<string> DividirBlocos(string texto, double blocos){
return Enumerable.Range(0, (int)Math.Ceiling(texto.Length / blocos))
.Select(i => new string(texto
.Skip(i * (int)blocos)
.Take((int)blocos)
.ToArray()));
}
public static void Main()
{
var texto = "13032015joao14032014Juca25";
var partes = DividirBlocos(texto, 12);
foreach (var parte in partes){
Console.WriteLine(parte);
// 13032015joao
// 14032014Juca
// 25
}
Console.ReadLine();
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkxpbnE7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglzdGF0aWMgSUVudW1lcmFibGU8c3RyaW5nPiBEaXZpZGlyQmxvY29zKHN0cmluZyB0ZXh0bywgZG91YmxlIGJsb2Nvcyl7CgkJcmV0dXJuIEVudW1lcmFibGUuUmFuZ2UoMCwgKGludClNYXRoLkNlaWxpbmcodGV4dG8uTGVuZ3RoIC8gYmxvY29zKSkKCQkgICAuU2VsZWN0KGkgPT4gbmV3IHN0cmluZyh0ZXh0bwoJCSAgICAgIC5Ta2lwKGkgKiAoaW50KWJsb2NvcykKICAgICAgICAgICAgICAuVGFrZSgoaW50KWJsb2NvcykKICAgICAgICAgICAgICAuVG9BcnJheSgpKSk7CiAgICB9CgoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXZhciB0ZXh0byAgPSAiMTMwMzIwMTVqb2FvMTQwMzIwMTRKdWNhMjUiOwoJCXZhciBwYXJ0ZXMgPSBEaXZpZGlyQmxvY29zKHRleHRvLCAxMik7CgkJCgkJZm9yZWFjaCAodmFyIHBhcnRlIGluIHBhcnRlcyl7CgkJCUNvbnNvbGUuV3JpdGVMaW5lKHBhcnRlKTsKICAgICAgICAgICAgLy8gMTMwMzIwMTVqb2FvCiAgICAgICAgICAgIC8vIDE0MDMyMDE0SnVjYQogICAgICAgICAgICAvLyAyNQogICAgICAgIH0KICAgICAgICBDb25zb2xlLlJlYWRMaW5lKCk7Cgl9Cn0=