Silence依 幼苗
共回答了13个问题采纳率:92.3% 举报
1年前 追问
//using System.Linq;
static void Main(string[] args)
{
//Dictionary
DictionaryD = new Dictionary ();
D.Add("1001", "100000-199999");
D.Add("1002", "200000-299999");
D.Add("1003", "300000-399999");
//int i=100001;//1001
int i = 399998;//1003
var d = D.First(x =>
Convert.ToInt64(x.Value.Split(new char[] { '-' })[0]) <= i &
Convert.ToInt64(x.Value.Split(new char[] { '-' })[1]) >= i
).Key;
Console.WriteLine(d);
Console.ReadLine();
}
1年前2个回答
1年前3个回答
1年前1个回答
1年前1个回答
1年前1个回答
1年前1个回答
1年前1个回答