2012年6月7日

摘要: View Code #include <stdlib.h>#include <stdio.h>#include <assert.h>#define Elem inttypedef struct Node{ int elem; struct Node *next;}Node;typedef struct Quece{ Node *front; Node *rear;}Quece;Quece *initQuece(){ Quece *T=(Quece *)malloc(sizeof(Quece)); if(!T) exit(0); N... 阅读全文
posted @ 2012-06-07 10:31 蓝色守望 阅读(1354) 评论(0) 推荐(0)
摘要: 统计一个月内访问百度最多的那个IP?理论上IP最多有2的32次方个,每个IP是32字符,那么总共占128G。但是实际上能有十分之一的IP访问就不错了,所以可以考虑用hash把所有的IP读入内存,这样就可以统计出了。 阅读全文
posted @ 2012-06-07 10:23 蓝色守望 阅读(122) 评论(0) 推荐(0)

导航