摘要:
微软的面试题,我做过。鸽巢原理。using System;using System.Linq;using System.Collections.Generic;namespace ConsoleApplication1{ class Program { static Random Rand = new Random(); static void Main(string[] args) { int count = 10000; List<int> Input = new List<int>(); for (int i = 0; i < count; i++) { I 阅读全文
posted @ 2011-07-10 01:30
CSDN大笨狼
阅读(1028)
评论(1)
推荐(0)
摘要:
25匹赛马,5个跑道,也就是说每次有5匹马可以同时比赛。问最少比赛多少次可以知道跑得最快的5匹马? 阅读全文
posted @ 2011-07-10 01:23
CSDN大笨狼
阅读(631)
评论(3)
推荐(0)