using System;
using System.Linq;
public class Test
{
public static void Main()
{
var input = "10 15 20";
string[] output = input.Split(' '); // o separador, nesse caso é o espaço
int[] outputInt = Array.ConvertAll(output, str => int.Parse(str));
foreach(var item in outputInt)
{
Console.WriteLine(item.ToString());
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQl2YXIgaW5wdXQgPSAiMTAgMTUgMjAiOwoJCXN0cmluZ1tdIG91dHB1dCA9IGlucHV0LlNwbGl0KCcgJyk7IC8vIG8gc2VwYXJhZG9yLCBuZXNzZSBjYXNvIMOpIG8gZXNwYcOnbwoJCWludFtdIG91dHB1dEludCA9IEFycmF5LkNvbnZlcnRBbGwob3V0cHV0LCBzdHIgPT4gaW50LlBhcnNlKHN0cikpOwoJCQoJCWZvcmVhY2godmFyIGl0ZW0gaW4gb3V0cHV0SW50KQoJCXsKCQkgICAgQ29uc29sZS5Xcml0ZUxpbmUoaXRlbS5Ub1N0cmluZygpKTsKCQl9Cgl9Cn0=