日期:2014-05-17 浏览次数:20989 次
List<int> L_1 = new List<int> { 1, 2, 2, 5, 3, 7 };
List<int> Res = new List<int>();
for (int i = 0; i < 10; i++)
{
int Tempi = L_1.FindLastIndex(delegate(int s) { return s == i; });
if (Tempi >= 0)
Res.Add(6 - Tempi);
else
Res.Add(-1);
}