using System;
using System.Linq;
public class Test
{
public static void Main()
{
String[] A = new String[] { "one", "two", "three", "four" };
int[] idxs = new int[] { 1, 3 };
var result = idxs.Select(i => A[i]).ToArray();
foreach(var s in result)
Console.WriteLine(s);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKICAgICAgICAgICAgU3RyaW5nW10gQSA9IG5ldyBTdHJpbmdbXSB7ICJvbmUiLCAidHdvIiwgInRocmVlIiwgImZvdXIiIH07CiAgICAgICAgICAgIGludFtdIGlkeHMgPSBuZXcgaW50W10geyAxLCAzIH07CiAgICAgICAgICAgIHZhciByZXN1bHQgPSBpZHhzLlNlbGVjdChpID0+IEFbaV0pLlRvQXJyYXkoKTsKICAgICAgICAgICAgCiAgICAgICAgICAgIGZvcmVhY2godmFyIHMgaW4gcmVzdWx0KQogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShzKTsKCX0KfQ==