摘要: http://www.cnblogs.com/pangxiaodong/archive/2011/09/24/2189593.html问题描述:我这里有很多学生的学号(有重复的),已知其中有K个学生,他们的学号出现的次数都超过了总数的1/(K+1),请把这K个学号找出来。上代码:#include<iostream>#include<list>#include<utility>using namespace std;template<typename T,size_t N>inline size_t getArrLen(T (&arr)[N 阅读全文
posted @ 2011-11-17 22:48 高性能golang 阅读(644) 评论(0) 推荐(0) 编辑